From ce293a32cc11afb1a103463f4ad88b8e275434aa Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Thu, 18 Sep 2003 10:06:58 +0000 Subject: [PATCH] Added second test of 433 response. --- test/test_irclib.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test_irclib.py b/test/test_irclib.py index 9662e27b5..bf83bef25 100644 --- a/test/test_irclib.py +++ b/test/test_irclib.py @@ -213,6 +213,10 @@ class IrcTestCase(unittest.TestCase): self.irc.nick)) msg = self.irc.takeMsg() self.failUnless(msg.command == 'NICK' and msg.args[0] != self.irc.nick) + self.irc.feedMsg(ircmsgs.IrcMsg('433 * %s :Nickname already in use.' %\ + self.irc.nick)) + msg = self.irc.takeMsg() + self.failUnless(msg.command == 'NICK' and msg.args[0] != self.irc.nick) def testSendBeforeQueue(self): self.irc.queueMsg(ircmsgs.IrcMsg('NOTICE #foo bar'))