Updated for only allowing single channels.

This commit is contained in:
Jeremy Fincher 2004-12-07 04:52:46 +00:00
parent 826786dd47
commit e2e5acbac0

View File

@ -91,24 +91,13 @@ class AdminTestCase(PluginTestCase):
self.assertRegexp('part #foo', 'not in')
self.irc.feedMsg(ircmsgs.join('#foo', prefix=self.prefix))
getAfterJoinMessages()
self.assertError('part #foo #bar')
m = self.getMsg('part #foo')
self.assertEqual(m.command, 'PART')
self.irc.feedMsg(ircmsgs.join('#foo', prefix=self.prefix))
getAfterJoinMessages()
m = self.getMsg('part #foo reason')
self.assertEqual(m.command, 'PART')
self.assertEqual(m.args[0], '#foo')
self.irc.feedMsg(ircmsgs.join('#foo', prefix=self.prefix))
getAfterJoinMessages()
self.irc.feedMsg(ircmsgs.join('#bar', prefix=self.prefix))
getAfterJoinMessages()
m = self.getMsg('part #foo #bar')
self.assertEqual(m.command, 'PART')
self.assertEqual(m.args[0], '#foo,#bar')
self.irc.feedMsg(ircmsgs.join('#foo', prefix=self.prefix))
getAfterJoinMessages()
self.irc.feedMsg(ircmsgs.join('#bar', prefix=self.prefix))
getAfterJoinMessages()
m = self.getMsg('part #foo #bar reason')
self.assertEqual(m.command, 'PART')
self.assertEqual(m.args[0], '#foo,#bar')
self.assertEqual(m.args[1], 'reason')
def testNick(self):