From 0d8ef3ee6d789de25bdac7a6646f80cb515104bd Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Wed, 8 Oct 2003 16:28:12 +0000 Subject: [PATCH] Tests for the whatis functionality. --- test/test_Factoids.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/test_Factoids.py b/test/test_Factoids.py index 3538e86a0..99bae02a8 100644 --- a/test/test_Factoids.py +++ b/test/test_Factoids.py @@ -49,7 +49,10 @@ if sqlite is not None: self.assertNotError('factoidinfo jemfinch') self.assertRegexp('whatis jemfinch', 'my primary author') self.assertRegexp('whatis JEMFINCH', 'my primary author') + self.assertRegexp('whatis JEMFINCH 1', 'my primary author') self.assertNotError('learn jemfinch as a bad assembly programmer') + self.assertRegexp('whatis jemfinch 2', 'bad assembly') + self.assertNotRegexp('whatis jemfinch 2', 'primary author') self.assertRegexp('whatis jemfinch', r'.*primary author.*assembly') self.assertError('forget jemfinch') self.assertError('forget jemfinch 3')