mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Unbreak the Owner tests.
This commit is contained in:
parent
afc3c3f94a
commit
642e88118c
@ -33,7 +33,8 @@ import supybot.conf as conf
|
|||||||
import supybot.plugin as plugin
|
import supybot.plugin as plugin
|
||||||
|
|
||||||
class OwnerTestCase(PluginTestCase):
|
class OwnerTestCase(PluginTestCase):
|
||||||
plugins = ('Owner', 'Config', 'Misc') # Defaults, but hey, I'm cool.
|
# Defaults, but hey, I'm cool.
|
||||||
|
plugins = ('Owner', 'Config', 'Misc', 'Admin')
|
||||||
def testHelpLog(self):
|
def testHelpLog(self):
|
||||||
self.assertHelp('help log')
|
self.assertHelp('help log')
|
||||||
|
|
||||||
@ -81,17 +82,17 @@ class OwnerTestCase(PluginTestCase):
|
|||||||
self.assertNotError('enable foo')
|
self.assertNotError('enable foo')
|
||||||
|
|
||||||
def testRename(self):
|
def testRename(self):
|
||||||
self.assertError('rename admin ignore IGNORE')
|
self.assertError('rename Admin ignore IGNORE')
|
||||||
self.assertError('rename admin ignore ig-nore')
|
self.assertError('rename Admin ignore ig-nore')
|
||||||
self.assertNotError('rename admin removecapability rmcap')
|
self.assertNotError('rename Admin removecapability rmcap')
|
||||||
self.assertNotRegexp('list admin', 'removecapability')
|
self.assertNotRegexp('list Admin', 'removecapability')
|
||||||
self.assertRegexp('list admin', 'rmcap')
|
self.assertRegexp('list Admin', 'rmcap')
|
||||||
self.assertNotError('reload admin')
|
self.assertNotError('reload Admin')
|
||||||
self.assertNotRegexp('list admin', 'removecapability')
|
self.assertNotRegexp('list Admin', 'removecapability')
|
||||||
self.assertRegexp('list admin', 'rmcap')
|
self.assertRegexp('list Admin', 'rmcap')
|
||||||
self.assertNotError('unrename admin')
|
self.assertNotError('unrename Admin')
|
||||||
self.assertRegexp('list admin', 'removecapability')
|
self.assertRegexp('list Admin', 'removecapability')
|
||||||
self.assertNotRegexp('list admin', 'rmcap')
|
self.assertNotRegexp('list Admin', 'rmcap')
|
||||||
|
|
||||||
def testDefaultPluginErrorsWhenCommandNotInPlugin(self):
|
def testDefaultPluginErrorsWhenCommandNotInPlugin(self):
|
||||||
self.assertError('defaultplugin foobar owner')
|
self.assertError('defaultplugin foobar owner')
|
||||||
|
Loading…
Reference in New Issue
Block a user