diff --git a/django_project/minisass_authentication/tests/test_views.py b/django_project/minisass_authentication/tests/test_views.py index eed1038a4..1a9792b35 100644 --- a/django_project/minisass_authentication/tests/test_views.py +++ b/django_project/minisass_authentication/tests/test_views.py @@ -210,7 +210,7 @@ def setUp(self): def test_not_authenticated(self): response = self.client.get(self.url) - self.assertEquals(response.status_code, 401) + self.assertEquals(response.status_code, 403) def test_update_works(self): self.client.force_authenticate(self.user) @@ -339,7 +339,7 @@ def test_check_authentication_status_authenticated(self): def test_check_authentication_status_unauthenticated(self): response = self.client.get(self.url) - self.assertEquals(response.status_code, 401) + self.assertEquals(response.status_code, 403) self.assertEquals( response.json(), {'detail': 'Authentication credentials were not provided.'}