Fix test_authorize_endpoint messages.
This commit is contained in:
parent
4302958671
commit
2529fef5ba
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
response = AuthorizeView.as_view()(request)
|
||||
|
|
Loading…
Reference in a new issue