mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-03-29 10:56:57 +01:00
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):
|
||||||
m = self.getMsg('nick foobar')
|
original = conf.supybot.nick()
|
||||||
self.assertEqual(m.command, 'NICK')
|
try:
|
||||||
self.assertEqual(m.args[0], 'foobar')
|
m = self.getMsg('nick foobar')
|
||||||
|
self.assertEqual(m.command, 'NICK')
|
||||||
|
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…
x
Reference in New Issue
Block a user