aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/tests
diff options
context:
space:
mode:
authorPavel Savchenko2012-11-29 09:35:22 +0200
committerPavel Savchenko2012-11-29 09:35:22 +0200
commit1b9d0eefba07cb3567ad7dbeb72c4c3b3c1f0de3 (patch)
treef3f999c7e031a8e8c6bae7251d33cbb071f966b0 /rest_framework/tests
parent19f67bd578ecd15ab057c6aff8a9cc788a459d10 (diff)
downloaddjango-rest-framework-1b9d0eefba07cb3567ad7dbeb72c4c3b3c1f0de3.tar.bz2
fix forgotten 400 test
Diffstat (limited to 'rest_framework/tests')
-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 d12e6e2a..802bc6c1 100644
--- a/rest_framework/tests/authentication.py
+++ b/rest_framework/tests/authentication.py
@@ -174,7 +174,7 @@ class TokenAuthTests(TestCase):
client = Client(enforce_csrf_checks=True)
response = client.post('/auth-token/login/',
json.dumps({'username': self.username}), 'application/json')
- self.assertEqual(response.status_code, 400)
+ self.assertEqual(response.status_code, 401)
def test_token_login_form(self):
"""Ensure token login view using form POST works."""