mirror of https://github.com/Mikaela/Limnoria.git
Don't know exactly why this helps, but there ya go.
This commit is contained in:
parent
0412055a85
commit
98b7917ffc
|
@ -31,9 +31,7 @@
|
||||||
|
|
||||||
from testsupport import *
|
from testsupport import *
|
||||||
|
|
||||||
import supybot.conf as conf
|
class AdminTestCase(PluginTestCase):
|
||||||
|
|
||||||
class AdminTestCase(PluginTestCase, PluginDocumentation):
|
|
||||||
plugins = ('Admin',)
|
plugins = ('Admin',)
|
||||||
def testChannels(self):
|
def testChannels(self):
|
||||||
def getAfterJoinMessages():
|
def getAfterJoinMessages():
|
||||||
|
@ -119,9 +117,13 @@ class AdminTestCase(PluginTestCase, PluginDocumentation):
|
||||||
self.assertEqual(m.args[0], '#foo,#bar')
|
self.assertEqual(m.args[0], '#foo,#bar')
|
||||||
|
|
||||||
def testNick(self):
|
def testNick(self):
|
||||||
|
original = conf.supybot.nick()
|
||||||
|
try:
|
||||||
m = self.getMsg('nick foobar')
|
m = self.getMsg('nick foobar')
|
||||||
self.assertEqual(m.command, 'NICK')
|
self.assertEqual(m.command, 'NICK')
|
||||||
self.assertEqual(m.args[0], 'foobar')
|
self.assertEqual(m.args[0], 'foobar')
|
||||||
|
finally:
|
||||||
|
conf.supybot.nick.setValue(original)
|
||||||
|
|
||||||
def testAddCapabilityOwner(self):
|
def testAddCapabilityOwner(self):
|
||||||
self.assertError('admin addcapability %s owner' % self.nick)
|
self.assertError('admin addcapability %s owner' % self.nick)
|
||||||
|
|
Loading…
Reference in New Issue