From d7fcb9289fb9403db1c646b4205117d1ba66acfe Mon Sep 17 00:00:00 2001 From: Joachim Filip Ignacy Bartosik Date: Fri, 17 Jun 2011 14:06:25 +0200 Subject: Add '#option remove' command to MeetBot --- bot/tests/run_test.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'bot/tests') diff --git a/bot/tests/run_test.py b/bot/tests/run_test.py index a80e6ec..9808ee6 100644 --- a/bot/tests/run_test.py +++ b/bot/tests/run_test.py @@ -395,6 +395,15 @@ class MeetBotTest(unittest.TestCase): test.answer_should_match('20:13:50 #option list', 'Available voting options ' +\ 'are:\n0. first option') + def test_agenda_option_removing(self): + test = self.get_simple_agenda_test() + test.answer_should_match('20:13:50 #option remove 1', + 'You can not vote or change agenda. Only x, z can.') + test.answer_should_match('20:13:50 #option remove 1', + 'You removed voting option 1: opt2') + test.answer_should_match('20:13:50 #option list', 'Available voting options ' +\ + 'are:\n0. opt1') + def test_agenda_voting(self): test = self.get_simple_agenda_test() test.answer_should_match('20:13:50 #startvote', 'Voting started\. ' +\ -- cgit v1.2.3