Added test for case-insensitivity in key lookup.

This commit is contained in:
Jeremy Fincher 2003-08-29 07:33:35 +00:00
parent 953fe860b3
commit 465ab3a591

View File

@ -42,6 +42,7 @@ class FactoidsTestCase(ChannelPluginTestCase):
self.assertNotError('learn jemfinch as my primary author') self.assertNotError('learn jemfinch as my primary author')
self.assertNotError('factoidinfo jemfinch') self.assertNotError('factoidinfo jemfinch')
self.assertRegexp('whatis jemfinch', 'my primary author') self.assertRegexp('whatis jemfinch', 'my primary author')
self.assertRegexp('whatis JEMFINCH', 'my primary author')
self.assertNotError('learn jemfinch as a crappy assembly programmer') self.assertNotError('learn jemfinch as a crappy assembly programmer')
self.assertRegexp('whatis jemfinch', r'.*primary author.*assembly') self.assertRegexp('whatis jemfinch', r'.*primary author.*assembly')
self.assertError('unlearn jemfinch') self.assertError('unlearn jemfinch')