mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-06 09:34:05 +01:00
Added test for empty topic in IrcState.
This commit is contained in:
parent
e0396337b1
commit
6d9cf3e0a2
@ -164,6 +164,10 @@ class IrcStateTestCase(unittest.TestCase):
|
|||||||
self.assertEqual(list(state.history), msgs[len(msgs)-conf.maxHistory:])
|
self.assertEqual(list(state.history), msgs[len(msgs)-conf.maxHistory:])
|
||||||
conf.maxHistory = oldconfmaxhistory
|
conf.maxHistory = oldconfmaxhistory
|
||||||
|
|
||||||
|
def testEmptyTopic(self):
|
||||||
|
state = irclib.IrcState()
|
||||||
|
state.addMsg(self.irc, ircmsgs.topic('#foo'))
|
||||||
|
|
||||||
def testPickleCopy(self):
|
def testPickleCopy(self):
|
||||||
state = irclib.IrcState()
|
state = irclib.IrcState()
|
||||||
self.assertEqual(state, pickle.loads(pickle.dumps(state)))
|
self.assertEqual(state, pickle.loads(pickle.dumps(state)))
|
||||||
|
Loading…
Reference in New Issue
Block a user