mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 03:02:52 +01:00
Slight improvement to a test.
This commit is contained in:
parent
1139f2ab47
commit
5822a249e7
@ -51,6 +51,7 @@ class TopicTestCase(ChannelPluginTestCase, PluginDocumentation):
|
||||
self.assertError('topic get 0')
|
||||
|
||||
def testAdd(self):
|
||||
self.assertError('topic add #floorgle')
|
||||
m = self.getMsg('topic add foo')
|
||||
self.assertEqual(m.command, 'TOPIC')
|
||||
self.assertEqual(m.args[0], self.channel)
|
||||
@ -58,7 +59,7 @@ class TopicTestCase(ChannelPluginTestCase, PluginDocumentation):
|
||||
m = self.getMsg('topic add bar')
|
||||
self.assertEqual(m.command, 'TOPIC')
|
||||
self.assertEqual(m.args[0], self.channel)
|
||||
self.assertError('topic add #floorgle')
|
||||
self.assertEqual(m.args[1], 'foo (test) || bar (test)')
|
||||
|
||||
def testChange(self):
|
||||
_ = self.getMsg('topic add foo')
|
||||
|
Loading…
Reference in New Issue
Block a user