Added second test of 433 response.

This commit is contained in:
Jeremy Fincher 2003-09-18 10:06:58 +00:00
parent 4ab9dc7718
commit ce293a32cc
1 changed files with 4 additions and 0 deletions

View File

@ -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'))