fix testcases for forced parts
This commit is contained in:
parent
02f95832db
commit
93f5ef5b9e
|
@ -124,7 +124,7 @@ class BantrackerTestCase(ChannelPluginTestCase):
|
||||||
self.assertEqual(str(msg).strip(),
|
self.assertEqual(str(msg).strip(),
|
||||||
"PRIVMSG op :Please comment on the removal of dude in #test, use: @comment 3"
|
"PRIVMSG op :Please comment on the removal of dude in #test, use: @comment 3"
|
||||||
" <comment>")
|
" <comment>")
|
||||||
self.feedBan('dude', mode='p')
|
self.feedBan('dude!dude@trollpit.com', mode='p')
|
||||||
msg = self.irc.takeMsg()
|
msg = self.irc.takeMsg()
|
||||||
self.assertEqual(str(msg).strip(),
|
self.assertEqual(str(msg).strip(),
|
||||||
"PRIVMSG op :Please comment on the removal of dude in #test, use: @comment 4"
|
"PRIVMSG op :Please comment on the removal of dude in #test, use: @comment 4"
|
||||||
|
@ -285,7 +285,7 @@ class BantrackerTestCase(ChannelPluginTestCase):
|
||||||
def testPart(self):
|
def testPart(self):
|
||||||
self.feedBan('troll!user@trollpit.net', mode='p')
|
self.feedBan('troll!user@trollpit.net', mode='p')
|
||||||
fetch = self.query("SELECT id,channel,mask,operator FROM bans")
|
fetch = self.query("SELECT id,channel,mask,operator FROM bans")
|
||||||
self.assertEqual((1, '#test', 'troll!user@trollpit.net', 'op'), fetch[0])
|
self.assertEqual((1, '#test', 'troll', 'op'), fetch[0])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue