aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/tests/authentication.py
diff options
context:
space:
mode:
authorTom Christie2013-03-08 22:56:24 +0000
committerTom Christie2013-03-08 22:56:24 +0000
commit2596c12a21003d230beb101aa93ddf83a1995305 (patch)
treecf33394a92884b64000842583f63f46396cb42e7 /rest_framework/tests/authentication.py
parent1016c14a8a9eef1031c1a4000a2ae257775339d5 (diff)
downloaddjango-rest-framework-2596c12a21003d230beb101aa93ddf83a1995305.tar.bz2
Fixes for auth header checking.
Diffstat (limited to 'rest_framework/tests/authentication.py')
-rw-r--r--rest_framework/tests/authentication.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/tests/authentication.py b/rest_framework/tests/authentication.py
index ddd61b63..9e86881a 100644
--- a/rest_framework/tests/authentication.py
+++ b/rest_framework/tests/authentication.py
@@ -159,7 +159,7 @@ class TokenAuthTests(TestCase):
def test_post_form_passing_token_auth(self):
"""Ensure POSTing json over token auth with correct credentials passes and does not require CSRF"""
- auth = "Token " + self.key
+ auth = 'Token ' + self.key
response = self.csrf_client.post('/token/', {'example': 'example'}, HTTP_AUTHORIZATION=auth)
self.assertEqual(response.status_code, status.HTTP_200_OK)