From 4e43ba4cb69daa7c77b13ff5a993c5f9171d3ed4 Mon Sep 17 00:00:00 2001 From: Oliver Falk Date: Fri, 25 May 2018 09:34:39 +0200 Subject: [PATCH] Change assertion, since locally, this behaves diffeerently and raises another Exception --- ivatar/ivataraccount/test_views.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ivatar/ivataraccount/test_views.py b/ivatar/ivataraccount/test_views.py index d3eee7a..76d878d 100644 --- a/ivatar/ivataraccount/test_views.py +++ b/ivatar/ivataraccount/test_views.py @@ -963,10 +963,9 @@ class Tester(TestCase): response.status_code, 200, 'unable to remove unconfirmed address?') - self.assertEqual( - str(list(response.context[0]['messages'])[-1]), - 'OpenID discovery failed: HTTP Response status from identity URL\ - host is not 200. Got status 403', + self.assertContains( + response, + 'OpenID discovery failed: ', 1, 200, 'This request must return an error in test mode' )