mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-19 08:59:27 +01:00
Topic: add test for removing multiple topics
This commit is contained in:
parent
465fe857bc
commit
b81bd2589e
@ -42,6 +42,17 @@ class TopicTestCase(ChannelPluginTestCase):
|
|||||||
self.assertNotError('topic remove 1')
|
self.assertNotError('topic remove 1')
|
||||||
self.assertError('topic remove 1')
|
self.assertError('topic remove 1')
|
||||||
|
|
||||||
|
def testRemoveMultiple(self):
|
||||||
|
self.assertError('topic remove 1 2')
|
||||||
|
_ = self.getMsg('topic add foo')
|
||||||
|
_ = self.getMsg('topic add bar')
|
||||||
|
_ = self.getMsg('topic add baz')
|
||||||
|
_ = self.getMsg('topic add derp')
|
||||||
|
_ = self.getMsg('topic add cheese')
|
||||||
|
self.assertNotError('topic remove 1 2')
|
||||||
|
self.assertNotError('topic remove -1 1')
|
||||||
|
self.assertError('topic remove -99 1')
|
||||||
|
|
||||||
def testReplace(self):
|
def testReplace(self):
|
||||||
_ = self.getMsg('topic add foo')
|
_ = self.getMsg('topic add foo')
|
||||||
_ = self.getMsg('topic add bar')
|
_ = self.getMsg('topic add bar')
|
||||||
|
Loading…
Reference in New Issue
Block a user