mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-09 02:54:13 +01:00
Added test to make sure unban worked.
This commit is contained in:
parent
0385b71235
commit
50d777e41f
@ -157,6 +157,12 @@ class FunctionsTestCase(unittest.TestCase):
|
|||||||
[('+b', bans[0]), ('+b', bans[1]),
|
[('+b', bans[0]), ('+b', bans[1]),
|
||||||
('+e', exceptions[0])])
|
('+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):
|
def testJoin(self):
|
||||||
channel = '#osu'
|
channel = '#osu'
|
||||||
key = 'michiganSucks'
|
key = 'michiganSucks'
|
||||||
|
Loading…
Reference in New Issue
Block a user