From 6d9cf3e0a2822db7a6ab6e0e5bf811ef005382f7 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sat, 6 Sep 2003 03:53:23 +0000 Subject: [PATCH] Added test for empty topic in IrcState. --- test/test_irclib.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test_irclib.py b/test/test_irclib.py index be75ee628..a1b9619de 100644 --- a/test/test_irclib.py +++ b/test/test_irclib.py @@ -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)))