mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Added second test of 433 response.
This commit is contained in:
parent
4ab9dc7718
commit
ce293a32cc
@ -213,6 +213,10 @@ class IrcTestCase(unittest.TestCase):
|
|||||||
self.irc.nick))
|
self.irc.nick))
|
||||||
msg = self.irc.takeMsg()
|
msg = self.irc.takeMsg()
|
||||||
self.failUnless(msg.command == 'NICK' and msg.args[0] != self.irc.nick)
|
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):
|
def testSendBeforeQueue(self):
|
||||||
self.irc.queueMsg(ircmsgs.IrcMsg('NOTICE #foo bar'))
|
self.irc.queueMsg(ircmsgs.IrcMsg('NOTICE #foo bar'))
|
||||||
|
Loading…
Reference in New Issue
Block a user