mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 06:49:24 +01:00
Added another test.
This commit is contained in:
parent
d7fc280647
commit
afa182ab7c
@ -205,6 +205,14 @@ class IrcStateTestCase(SupyTestCase):
|
|||||||
nick = 'nick'
|
nick = 'nick'
|
||||||
prefix = 'nick!user@host'
|
prefix = 'nick!user@host'
|
||||||
irc = FakeIrc()
|
irc = FakeIrc()
|
||||||
|
def testAddMsgRemovesOpsProperly(self):
|
||||||
|
st = irclib.IrcState()
|
||||||
|
st.channels['#foo'] = irclib.ChannelState()
|
||||||
|
st.channels['#foo'].ops.add('bar')
|
||||||
|
m = ircmsgs.mode('#foo', ('-o', 'bar'))
|
||||||
|
st.addMsg(self.irc, m)
|
||||||
|
self.failIf('bar' in st.channels['#foo'].ops)
|
||||||
|
|
||||||
def testHistory(self):
|
def testHistory(self):
|
||||||
oldconfmaxhistory = conf.supybot.protocols.irc.maxHistoryLength()
|
oldconfmaxhistory = conf.supybot.protocols.irc.maxHistoryLength()
|
||||||
conf.supybot.protocols.irc.maxHistoryLength.setValue(10)
|
conf.supybot.protocols.irc.maxHistoryLength.setValue(10)
|
||||||
|
Loading…
Reference in New Issue
Block a user