Fix test_authorize_endpoint messages.

This commit is contained in:
Juan Ignacio Fiorentino 2015-04-30 12:42:00 -03:00
parent 4302958671
commit 2529fef5ba

View file

@ -181,9 +181,9 @@ class AuthorizationCodeFlowTestCase(TestCase):
# Because user doesn't allow app, SHOULD exists an error parameter # Because user doesn't allow app, SHOULD exists an error parameter
# in the query. # in the query.
self.assertEqual('error=' in response['Location'], True, 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, 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. # Simulate user authorization.
post_data['allow'] = 'Accept' # Should be the value of the button. post_data['allow'] = 'Accept' # Should be the value of the button.
@ -238,4 +238,4 @@ class AuthorizationImplicitFlowTestCase(TestCase):
# Simulate that the user is logged. # Simulate that the user is logged.
request.user = self.user request.user = self.user
response = AuthorizeView.as_view()(request) response = AuthorizeView.as_view()(request)