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')