Topic: add test for removing multiple topics

This commit is contained in:
GLolol 2014-12-26 17:22:35 -05:00
parent 465fe857bc
commit b81bd2589e

View File

@ -42,6 +42,17 @@ class TopicTestCase(ChannelPluginTestCase):
self.assertNotError('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):
_ = self.getMsg('topic add foo')
_ = self.getMsg('topic add bar')