Change assertion, since locally, this behaves diffeerently and raises another Exception

This commit is contained in:
Oliver Falk
2018-05-25 09:34:39 +02:00
parent 8e3f83696b
commit 4e43ba4cb6

View File

@@ -963,10 +963,9 @@ class Tester(TestCase):
response.status_code, response.status_code,
200, 200,
'unable to remove unconfirmed address?') 'unable to remove unconfirmed address?')
self.assertEqual( self.assertContains(
str(list(response.context[0]['messages'])[-1]), response,
'OpenID discovery failed: HTTP Response status from identity URL\ 'OpenID discovery failed: ', 1, 200,
host is not 200. Got status 403',
'This request must return an error in test mode' 'This request must return an error in test mode'
) )