mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +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.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('forget jemfinch')
|
||||||
self.assertError('unlearn jemfinch 2')
|
self.assertError('forget jemfinch 2')
|
||||||
self.assertNotError('unlearn jemfinch 1')
|
self.assertNotError('forget jemfinch 1')
|
||||||
self.assertNotError('unlearn jemfinch 0')
|
self.assertNotError('forget jemfinch 0')
|
||||||
self.assertError('whatis jemfinch')
|
self.assertError('whatis jemfinch')
|
||||||
self.assertError('factoidinfo jemfinch')
|
self.assertError('factoidinfo jemfinch')
|
||||||
|
|
||||||
@ -57,9 +57,9 @@ class FactoidsTestCase(ChannelPluginTestCase, PluginDocumentation):
|
|||||||
self.assertRegexp('whatis foo bar', 'baz')
|
self.assertRegexp('whatis foo bar', 'baz')
|
||||||
self.assertNotError('learn foo bar as quux')
|
self.assertNotError('learn foo bar as quux')
|
||||||
self.assertRegexp('whatis foo bar', '.*baz.*quux')
|
self.assertRegexp('whatis foo bar', '.*baz.*quux')
|
||||||
self.assertError('unlearn foo bar')
|
self.assertError('forget foo bar')
|
||||||
self.assertNotError('unlearn foo bar 1')
|
self.assertNotError('forget foo bar 1')
|
||||||
self.assertNotError('unlearn foo bar 0')
|
self.assertNotError('forget foo bar 0')
|
||||||
self.assertError('whatis foo bar')
|
self.assertError('whatis foo bar')
|
||||||
self.assertError('factoidinfo foo bar')
|
self.assertError('factoidinfo foo bar')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user