aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2011-06-17 14:06:25 +0200
committerJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2011-06-17 14:06:25 +0200
commitd7fcb9289fb9403db1c646b4205117d1ba66acfe (patch)
treee8a233cc1f7f7b70bb55f0f8365ea859b974ab14 /bot/tests/run_test.py
parentAdd '#option add' command to MeetBot (diff)
downloadcouncil-webapp-d7fcb9289fb9403db1c646b4205117d1ba66acfe.tar.gz
council-webapp-d7fcb9289fb9403db1c646b4205117d1ba66acfe.tar.bz2
council-webapp-d7fcb9289fb9403db1c646b4205117d1ba66acfe.zip
Add '#option remove' command to MeetBot
Diffstat (limited to 'bot/tests/run_test.py')
-rw-r--r--bot/tests/run_test.py9
1 files changed, 9 insertions, 0 deletions
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 <x> #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 <not_allowed> #option remove 1',
+ 'You can not vote or change agenda. Only x, z can.')
+ test.answer_should_match('20:13:50 <x> #option remove 1',
+ 'You removed voting option 1: opt2')
+ test.answer_should_match('20:13:50 <x> #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 <x> #startvote', 'Voting started\. ' +\