diff options
author | Joachim Filip Ignacy Bartosik <jbartosik@gmail.com> | 2011-07-13 16:29:40 +0200 |
---|---|---|
committer | Joachim Filip Ignacy Bartosik <jbartosik@gmail.com> | 2011-07-13 17:39:26 +0200 |
commit | 2d0ea3df264d8dea133f503ca6fe47279e33e1d2 (patch) | |
tree | 0d51189866723cf187223ae47c9b6ede3a38fc75 | |
parent | Use hobo from git to make :null=>false default for some types of fields (diff) | |
download | council-webapp-2d0ea3df264d8dea133f503ca6fe47279e33e1d2.tar.gz council-webapp-2d0ea3df264d8dea133f503ca6fe47279e33e1d2.tar.bz2 council-webapp-2d0ea3df264d8dea133f503ca6fe47279e33e1d2.zip |
Test for multiple reminders
-rw-r--r-- | bot/tests/run_test.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bot/tests/run_test.py b/bot/tests/run_test.py index bd116ff..0d18cce 100644 --- a/bot/tests/run_test.py +++ b/bot/tests/run_test.py @@ -519,6 +519,19 @@ class MeetBotTest(unittest.TestCase): test.process('20:13:50 <x> #nextitem') + def test_multiple_reminders(self): + test = self.get_simple_agenda_test() + test.process('20:13:50 <x> #timelimit add 0:1 message') + test.process('20:13:50 <x> #timelimit add 0:2 other message') + test.process('20:13:50 <x> #timelimit add 0:3 yet another message') + test.log = [] + time.sleep(4) + expected_messages = ['message', 'other message', 'yet another message'] + messages_match = (expected_messages == test.log) + error_msg = 'Received messages ' + str(test.log) + \ + ' didn\'t match expected ' + str(expected_messages) + assert messages_match, error_msg + if __name__ == '__main__': os.chdir(os.path.join(os.path.dirname(__file__), '.')) |