Added test to make sure unban worked.

This commit is contained in:
Jeremy Fincher 2003-10-15 03:16:35 +00:00
parent 0385b71235
commit 50d777e41f
1 changed files with 6 additions and 0 deletions

View File

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