Commit e3aff6a5 by Ron Cohen

Updated test docstring related to missing bearer token.

parent 05882cc5
...@@ -551,7 +551,7 @@ class OAuth2Tests(TestCase): ...@@ -551,7 +551,7 @@ class OAuth2Tests(TestCase):
@unittest.skipUnless(oauth2_provider, 'django-oauth2-provider not installed') @unittest.skipUnless(oauth2_provider, 'django-oauth2-provider not installed')
def test_get_form_with_wrong_authorization_header_token_missing(self): def test_get_form_with_wrong_authorization_header_token_missing(self):
"""Ensure that a wrong token lead to the correct HTTP error status code""" """Ensure that a missing token lead to the correct HTTP error status code"""
auth = "Bearer" auth = "Bearer"
response = self.csrf_client.get('/oauth2-test/', {}, HTTP_AUTHORIZATION=auth) response = self.csrf_client.get('/oauth2-test/', {}, HTTP_AUTHORIZATION=auth)
self.assertEqual(response.status_code, 401) self.assertEqual(response.status_code, 401)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment