mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Tests for the whatis <x> <num> functionality.
This commit is contained in:
parent
b719ab6c24
commit
0d8ef3ee6d
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user