From ccea98b428a5b47f90f675d27af25a8dacfa99ac Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Mon, 19 Jan 2015 17:38:51 +0100 Subject: [PATCH] Update tests. --- test/test_irclib.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/test_irclib.py b/test/test_irclib.py index 607850567..6a57f342d 100644 --- a/test/test_irclib.py +++ b/test/test_irclib.py @@ -387,8 +387,6 @@ class IrcTestCase(SupyTestCase): m = self.irc.takeMsg() self.failUnless(m.command == 'CAP', 'Expected CAP, got %r.' % m) m = self.irc.takeMsg() - self.failUnless(m.command == 'CAP', 'Expected CAP, got %r.' % m) - m = self.irc.takeMsg() self.failUnless(m.command == 'USER', 'Expected USER, got %r.' % m) def testPingResponse(self): @@ -486,8 +484,8 @@ class IrcCallbackTestCase(SupyTestCase): user = 'user any user' conf.supybot.user.setValue(user) expected = [ircmsgs.nick(nick), - ircmsgs.IrcMsg(command='CAP', args=('REQ', 'account-notify')), - ircmsgs.IrcMsg(command='CAP', args=('REQ', 'extended-join')), + ircmsgs.IrcMsg(command='CAP', args=('REQ', + 'account-notify extended-join multi-prefix')), ircmsgs.IrcMsg(command='CAP', args=('END',)), ircmsgs.user('limnoria', user)] irc = irclib.Irc('test')