From ed3bad08bc685bde1a4466633461e229a8434b3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Norman=20J=C3=A4ckel?= Date: Fri, 31 May 2013 13:40:36 +0200 Subject: [PATCH] Insert test to the fix of #677 --- tests/agenda/tests.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/agenda/tests.py b/tests/agenda/tests.py index 77fcbbc8c..5092e6fb0 100644 --- a/tests/agenda/tests.py +++ b/tests/agenda/tests.py @@ -216,3 +216,12 @@ class ConfigTest(TestCase): response = self.client.get('/config/agenda/') self.assertContains(response, 'timepicker.css', status_code=200) self.assertContains(response, 'jquery-ui-timepicker-addon.min.js', status_code=200) + + def test_wrong_input(self): + response = self.client.post( + '/config/agenda/', + {'agenda_start_event_date_time': 'wrong_format', + 'agenda_show_last_speakers': '3'}) + self.assertFormError(response, form='form', + field='agenda_start_event_date_time', + errors='Invalid input.')