From 2529fef5baf2fa3e2fbb2785b43d9200d452ac0b Mon Sep 17 00:00:00 2001 From: Juan Ignacio Fiorentino Date: Thu, 30 Apr 2015 12:42:00 -0300 Subject: [PATCH] Fix test_authorize_endpoint messages. --- oidc_provider/tests/test_authorize_endpoint.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/oidc_provider/tests/test_authorize_endpoint.py b/oidc_provider/tests/test_authorize_endpoint.py index 0deffa0..6b8619b 100644 --- a/oidc_provider/tests/test_authorize_endpoint.py +++ b/oidc_provider/tests/test_authorize_endpoint.py @@ -181,9 +181,9 @@ class AuthorizationCodeFlowTestCase(TestCase): # Because user doesn't allow app, SHOULD exists an error parameter # in the query. self.assertEqual('error=' in response['Location'], True, - msg='error param is missing.') + msg='error param is missing in query.') self.assertEqual('access_denied' in response['Location'], True, - msg='access_denied param is missing.') + msg='"access_denied" code is missing in query.') # Simulate user authorization. post_data['allow'] = 'Accept' # Should be the value of the button. @@ -238,4 +238,4 @@ class AuthorizationImplicitFlowTestCase(TestCase): # Simulate that the user is logged. request.user = self.user - response = AuthorizeView.as_view()(request) \ No newline at end of file + response = AuthorizeView.as_view()(request)