mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-29 06:09:23 +01:00
Admin: Merge tests with the same name into one
This commit is contained in:
parent
4d2efc65ef
commit
abac8307ac
@ -114,18 +114,10 @@ class AdminTestCase(PluginTestCase):
|
|||||||
def testNoJoinOnUnprivilegedInvite(self):
|
def testNoJoinOnUnprivilegedInvite(self):
|
||||||
try:
|
try:
|
||||||
world.testing = False
|
world.testing = False
|
||||||
self.irc.feedMsg(ircmsgs.invite(conf.supybot.nick(), '#foo', prefix='foo!bar@baz'))
|
for channel in '#foo', '#foo\u0009':
|
||||||
self.assertResponse('somecommand',
|
self.irc.feedMsg(ircmsgs.invite(conf.supybot.nick(), channel, prefix='foo!bar@baz'))
|
||||||
'Error: "somecommand" is not a valid command.')
|
self.assertResponse('somecommand',
|
||||||
finally:
|
'Error: "somecommand" is not a valid command.')
|
||||||
world.testing = True
|
|
||||||
|
|
||||||
def testNoJoinOnUnprivilegedInvite(self):
|
|
||||||
try:
|
|
||||||
world.testing = False
|
|
||||||
self.irc.feedMsg(ircmsgs.invite(conf.supybot.nick(), '#foo\u0009', prefix='foo!bar@baz'))
|
|
||||||
self.assertResponse('somecommand',
|
|
||||||
'Error: "somecommand" is not a valid command.')
|
|
||||||
finally:
|
finally:
|
||||||
world.testing = True
|
world.testing = True
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user