From 2d0ea3df264d8dea133f503ca6fe47279e33e1d2 Mon Sep 17 00:00:00 2001 From: Joachim Filip Ignacy Bartosik Date: Wed, 13 Jul 2011 16:29:40 +0200 Subject: Test for multiple reminders --- bot/tests/run_test.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 #nextitem') + def test_multiple_reminders(self): + test = self.get_simple_agenda_test() + test.process('20:13:50 #timelimit add 0:1 message') + test.process('20:13:50 #timelimit add 0:2 other message') + test.process('20:13:50 #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__), '.')) -- cgit v1.2.3-65-gdbad