Browse Source

test message error

Bastien Sevajol (Algoo) 8 years ago
parent
commit
3ec8807bd4
1 changed files with 5 additions and 3 deletions
  1. 5 3
      tracim/tracim/tests/functional/test_calendar.py

+ 5 - 3
tracim/tracim/tests/functional/test_calendar.py View File

@@ -28,9 +28,11 @@ class TestCalendar(BaseTestCalendar):
28 28
 
29 29
         try:
30 30
             response = requests.get(radicale_base_url)
31
-            eq_(response.status_code, 401, 'Radicale http response is 401')
32
-        except ConnectionError:
33
-            ok_(False, 'Unable to contact radicale on HTTP')
31
+            eq_(response.status_code, 401, 'Radicale http response should be '
32
+                                           '401, its {0}'
33
+                .format(response.status_code))
34
+        except ConnectionError as exc:
35
+            ok_(False, 'Unable to contact radicale on HTTP: {0}'.format(exc))
34 36
 
35 37
     def test_func__radicale_auth__ok__as_lawrence(self):
36 38
         radicale_base_url = CalendarManager.get_base_url()