From 6f75b39a61703013cd1d8c92886f0319a40f2b4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thi=C3=AAn=20To=C3=A1n?= Date: Fri, 13 Oct 2017 13:08:48 +0700 Subject: [PATCH] HTTP_403_FORBIDDEN --- rest_api/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_api/tests.py b/rest_api/tests.py index e7d1280..c7ab6a7 100644 --- a/rest_api/tests.py +++ b/rest_api/tests.py @@ -54,7 +54,7 @@ def test_authorization_is_enforced(self): """Test that the api has user authorization.""" new_client = APIClient() res = new_client.get('/bucketlists/', kwargs={'pk': 3}, format="json") - self.assertEqual(res.status_code, status.HTTP_401_UNAUTHORIZED) + self.assertEqual(res.status_code, status.HTTP_403_FORBIDDEN) def test_api_can_get_a_bucketlist(self): """Test the api can get a given bucketlist."""