aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/tests
diff options
context:
space:
mode:
authorPavel Savchenko2012-11-28 23:05:33 +0200
committerPavel Savchenko2012-11-28 23:05:33 +0200
commit19f67bd578ecd15ab057c6aff8a9cc788a459d10 (patch)
treee7bb8a5fa15faaa378366a8557301e46e9b80e8b /rest_framework/tests
parent050e228edc3a20eceb705946997623a55081c6d1 (diff)
downloaddjango-rest-framework-19f67bd578ecd15ab057c6aff8a9cc788a459d10.tar.bz2
also update test with response code 401
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 96ca9f52..d12e6e2a 100644
--- a/rest_framework/tests/authentication.py
+++ b/rest_framework/tests/authentication.py
@@ -167,7 +167,7 @@ class TokenAuthTests(TestCase):
client = Client(enforce_csrf_checks=True)
response = client.post('/auth-token/login/',
json.dumps({'username': self.username, 'password': "badpass"}), 'application/json')
- self.assertEqual(response.status_code, 400)
+ self.assertEqual(response.status_code, 401)
def test_token_login_json_missing_fields(self):
"""Ensure token login view using JSON POST fails if missing fields."""