mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-20 01:19:26 +01:00
plugins/Owner: Update some tests to how they should be written. Now we just need to get the code to work correctly.
This commit is contained in:
parent
106fbc6eea
commit
170d735c91
@ -39,7 +39,7 @@ class OwnerTestCase(PluginTestCase):
|
||||
self.assertHelp('help log')
|
||||
|
||||
def testSrcAmbiguity(self):
|
||||
self.assertError('addcapability foo bar')
|
||||
self.assertError('capability add foo bar')
|
||||
|
||||
def testIrcquote(self):
|
||||
self.assertResponse('ircquote PRIVMSG %s :foo' % self.irc.nick, 'foo')
|
||||
@ -84,14 +84,14 @@ class OwnerTestCase(PluginTestCase):
|
||||
def testRename(self):
|
||||
self.assertError('rename Admin ignore IGNORE')
|
||||
self.assertError('rename Admin ignore ig-nore')
|
||||
self.assertNotError('rename Admin removecapability rmcap')
|
||||
self.assertNotRegexp('list Admin', 'removecapability')
|
||||
self.assertNotError('rename Admin "capability remove" rmcap')
|
||||
self.assertNotRegexp('list Admin', 'capability remove')
|
||||
self.assertRegexp('list Admin', 'rmcap')
|
||||
self.assertNotError('reload Admin')
|
||||
self.assertNotRegexp('list Admin', 'removecapability')
|
||||
self.assertNotRegexp('list Admin', 'capability remove')
|
||||
self.assertRegexp('list Admin', 'rmcap')
|
||||
self.assertNotError('unrename Admin')
|
||||
self.assertRegexp('list Admin', 'removecapability')
|
||||
self.assertRegexp('list Admin', 'capability remove')
|
||||
self.assertNotRegexp('list Admin', 'rmcap')
|
||||
|
||||
def testDefaultPluginErrorsWhenCommandNotInPlugin(self):
|
||||
|
Loading…
Reference in New Issue
Block a user