Added test for empty topic in IrcState.

This commit is contained in:
Jeremy Fincher 2003-09-06 03:53:23 +00:00
parent e0396337b1
commit 6d9cf3e0a2
1 changed files with 4 additions and 0 deletions

View File

@ -164,6 +164,10 @@ class IrcStateTestCase(unittest.TestCase):
self.assertEqual(list(state.history), msgs[len(msgs)-conf.maxHistory:])
conf.maxHistory = oldconfmaxhistory
def testEmptyTopic(self):
state = irclib.IrcState()
state.addMsg(self.irc, ircmsgs.topic('#foo'))
def testPickleCopy(self):
state = irclib.IrcState()
self.assertEqual(state, pickle.loads(pickle.dumps(state)))