Changed tests to work with new name for unlearn (forget)

This commit is contained in:
Jeremy Fincher 2003-09-08 09:10:09 +00:00
parent d9e3a199b0
commit b00743c242

View File

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