From e2e5acbac0089669ac8054bb7fbc798567b51af2 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 7 Dec 2004 04:52:46 +0000 Subject: [PATCH] Updated for only allowing single channels. --- test/test_Admin.py | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/test/test_Admin.py b/test/test_Admin.py index a4fefbac4..6753a0d01 100644 --- a/test/test_Admin.py +++ b/test/test_Admin.py @@ -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):