mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Changed tests to work with new name for unlearn (forget)
This commit is contained in:
parent
d9e3a199b0
commit
b00743c242
@ -45,10 +45,10 @@ class FactoidsTestCase(ChannelPluginTestCase, PluginDocumentation):
|
||||
self.assertRegexp('whatis JEMFINCH', 'my primary author')
|
||||
self.assertNotError('learn jemfinch as a crappy assembly programmer')
|
||||
self.assertRegexp('whatis jemfinch', r'.*primary author.*assembly')
|
||||
self.assertError('unlearn jemfinch')
|
||||
self.assertError('unlearn jemfinch 2')
|
||||
self.assertNotError('unlearn jemfinch 1')
|
||||
self.assertNotError('unlearn jemfinch 0')
|
||||
self.assertError('forget jemfinch')
|
||||
self.assertError('forget jemfinch 2')
|
||||
self.assertNotError('forget jemfinch 1')
|
||||
self.assertNotError('forget jemfinch 0')
|
||||
self.assertError('whatis jemfinch')
|
||||
self.assertError('factoidinfo jemfinch')
|
||||
|
||||
@ -57,9 +57,9 @@ class FactoidsTestCase(ChannelPluginTestCase, PluginDocumentation):
|
||||
self.assertRegexp('whatis foo bar', 'baz')
|
||||
self.assertNotError('learn foo bar as quux')
|
||||
self.assertRegexp('whatis foo bar', '.*baz.*quux')
|
||||
self.assertError('unlearn foo bar')
|
||||
self.assertNotError('unlearn foo bar 1')
|
||||
self.assertNotError('unlearn foo bar 0')
|
||||
self.assertError('forget foo bar')
|
||||
self.assertNotError('forget foo bar 1')
|
||||
self.assertNotError('forget foo bar 0')
|
||||
self.assertError('whatis foo bar')
|
||||
self.assertError('factoidinfo foo bar')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user