From 50d777e41f5eba33447ad734dc4142dd8d315cea Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Wed, 15 Oct 2003 03:16:35 +0000 Subject: [PATCH] Added test to make sure unban worked. --- test/test_ircmsgs.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test_ircmsgs.py b/test/test_ircmsgs.py index 29ccea2c4..9796c2fdd 100644 --- a/test/test_ircmsgs.py +++ b/test/test_ircmsgs.py @@ -157,6 +157,12 @@ class FunctionsTestCase(unittest.TestCase): [('+b', bans[0]), ('+b', bans[1]), ('+e', exceptions[0])]) + def testUnban(self): + channel = '#supybot' + ban = 'foo!bar@baz' + self.assertEqual(str(ircmsgs.unban(channel, ban)), + 'MODE %s -b :%s\r\n' % (channel, ban)) + def testJoin(self): channel = '#osu' key = 'michiganSucks'