mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Added test for behavior.
This commit is contained in:
parent
f4d7b28a95
commit
76cb2a05d1
@ -31,8 +31,18 @@
|
||||
|
||||
from test import *
|
||||
|
||||
import ircmsgs
|
||||
|
||||
class ParterTestCase(PluginTestCase, PluginDocumentation):
|
||||
plugins = ('Parter',)
|
||||
def test(self):
|
||||
self.assertNotError('autopartchannel #foo')
|
||||
self.irc.feedMsg(ircmsgs.join('#foo', prefix=self.prefix))
|
||||
m = self.getMsg(' ')
|
||||
if m.command == 'WHO':
|
||||
m = self.getMsg(' ')
|
||||
self.assertEqual(m.command, 'PART')
|
||||
self.assertEqual(m.args, ('#foo',))
|
||||
|
||||
|
||||
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
||||
|
Loading…
Reference in New Issue
Block a user