Fixed ignorant tests in Admin.

This commit is contained in:
Jeremy Fincher 2004-02-08 09:26:41 +00:00
parent ca4a8dceef
commit 54750f139f

View File

@ -45,23 +45,17 @@ class AdminTestCase(PluginTestCase, PluginDocumentation):
self.assertRegexp('channels', '#bar, #Baz, and #foo')
def testIgnoreUnignore(self):
try:
self.assertNotError('admin ignore foo!bar@baz')
self.assertError('admin ignore alsdkfjlasd')
self.assertNotError('admin unignore foo!bar@baz')
self.assertError('admin unignore foo!bar@baz')
finally:
conf.supybot.ignores.set('')
def testIgnores(self):
try:
self.assertNotError('admin ignores')
self.assertNotError('admin ignore foo!bar@baz')
self.assertNotError('admin ignores')
self.assertNotError('admin ignore foo!bar@baz')
self.assertNotError('admin ignores')
finally:
conf.supybot.ignores.set('')
def testAddcapability(self):
self.assertError('addcapability sdlkfj foo')