mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-23 10:34:19 +01:00
Channel: update tests
This commit is contained in:
parent
172f7bdd63
commit
d76b5049ac
@ -103,9 +103,13 @@ class ChannelTestCase(ChannelPluginTestCase):
|
|||||||
self.irc.feedMsg(ircmsgs.deop(self.channel, self.nick))
|
self.irc.feedMsg(ircmsgs.deop(self.channel, self.nick))
|
||||||
|
|
||||||
def testWontDeItself(self):
|
def testWontDeItself(self):
|
||||||
for s in 'deop dehalfop devoice'.split():
|
for s in 'deop dehalfop'.split():
|
||||||
self.irc.feedMsg(ircmsgs.op(self.channel, self.nick))
|
self.irc.feedMsg(ircmsgs.op(self.channel, self.nick))
|
||||||
self.assertError('%s %s' % (s, self.nick))
|
self.assertError('%s %s' % (s, self.nick))
|
||||||
|
|
||||||
|
def testCanDevoiceSelf(self):
|
||||||
|
self.irc.feedMsg(ircmsgs.op(self.channel, self.nick))
|
||||||
|
self.assertNotError('devoice %s' % self.nick)
|
||||||
|
|
||||||
def testOp(self):
|
def testOp(self):
|
||||||
self.assertError('op')
|
self.assertError('op')
|
||||||
|
Loading…
Reference in New Issue
Block a user