From b81bd2589e4977b7bbccb6d77f400f0cd4051070 Mon Sep 17 00:00:00 2001 From: GLolol Date: Fri, 26 Dec 2014 17:22:35 -0500 Subject: [PATCH] Topic: add test for removing multiple topics --- plugins/Topic/test.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/plugins/Topic/test.py b/plugins/Topic/test.py index 70f6cad8e..ac4d6f1a0 100644 --- a/plugins/Topic/test.py +++ b/plugins/Topic/test.py @@ -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')