mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 11:12:47 +01:00
Fixed ignorant tests in Admin.
This commit is contained in:
parent
ca4a8dceef
commit
54750f139f
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user