Slight improvement to a test.

This commit is contained in:
Jeremy Fincher 2004-12-07 06:44:45 +00:00
parent 1139f2ab47
commit 5822a249e7

View File

@ -51,6 +51,7 @@ class TopicTestCase(ChannelPluginTestCase, PluginDocumentation):
self.assertError('topic get 0') self.assertError('topic get 0')
def testAdd(self): def testAdd(self):
self.assertError('topic add #floorgle')
m = self.getMsg('topic add foo') m = self.getMsg('topic add foo')
self.assertEqual(m.command, 'TOPIC') self.assertEqual(m.command, 'TOPIC')
self.assertEqual(m.args[0], self.channel) self.assertEqual(m.args[0], self.channel)
@ -58,7 +59,7 @@ class TopicTestCase(ChannelPluginTestCase, PluginDocumentation):
m = self.getMsg('topic add bar') m = self.getMsg('topic add bar')
self.assertEqual(m.command, 'TOPIC') self.assertEqual(m.command, 'TOPIC')
self.assertEqual(m.args[0], self.channel) self.assertEqual(m.args[0], self.channel)
self.assertError('topic add #floorgle') self.assertEqual(m.args[1], 'foo (test) || bar (test)')
def testChange(self): def testChange(self):
_ = self.getMsg('topic add foo') _ = self.getMsg('topic add foo')