mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-16 15:39:21 +01:00
Admin: Fix leftover state change in testPart
it affects Channel's testPart
This commit is contained in:
parent
c8030be71a
commit
943f39745d
@ -87,13 +87,16 @@ class AdminTestCase(PluginTestCase):
|
|||||||
ircdb.users.delUser(u.id)
|
ircdb.users.delUser(u.id)
|
||||||
|
|
||||||
def testJoin(self):
|
def testJoin(self):
|
||||||
m = self.getMsg('join #foo')
|
try:
|
||||||
self.assertEqual(m.command, 'JOIN')
|
m = self.getMsg('join #foo')
|
||||||
self.assertEqual(m.args[0], '#foo')
|
self.assertEqual(m.command, 'JOIN')
|
||||||
m = self.getMsg('join #foo key')
|
self.assertEqual(m.args[0], '#foo')
|
||||||
self.assertEqual(m.command, 'JOIN')
|
m = self.getMsg('join #foo key')
|
||||||
self.assertEqual(m.args[0], '#foo')
|
self.assertEqual(m.command, 'JOIN')
|
||||||
self.assertEqual(m.args[1], 'key')
|
self.assertEqual(m.args[0], '#foo')
|
||||||
|
self.assertEqual(m.args[1], 'key')
|
||||||
|
finally:
|
||||||
|
self.getMsg('part #foo')
|
||||||
|
|
||||||
def testNick(self):
|
def testNick(self):
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user