Unbreak the Owner tests.

This commit is contained in:
James Vega 2005-01-31 16:01:25 +00:00
parent afc3c3f94a
commit 642e88118c

View File

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