              '/basic/',
              {'example': 'example'},
              format='json'
          )
          self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED)
          self.assertEqual(response['WWW-Authenticate'], 'Basic realm="api"')
  
  
  @override_settings(ROOT_URLCONF='tests.test_authentication')
  class SessionAuthTests(TestCase):
      """User session authentication"""
 
</s> remove         self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED)
 </s> add         assert response.status_code == status.HTTP_401_UNAUTHORIZED </s> remove         self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN)
 </s> add         assert response.status_code == status.HTTP_403_FORBIDDEN </s> remove         self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED)
 </s> add         assert response.status_code == status.HTTP_401_UNAUTHORIZED </s> remove         self.assertEqual(response.status_code, status.HTTP_200_OK)
 </s> add         assert response.status_code == status.HTTP_200_OK </s> remove         self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED)
 </s> add         assert response.status_code == status.HTTP_401_UNAUTHORIZED
        assert response.status_code == status.HTTP_401_UNAUTHORIZED
        assert response['WWW-Authenticate'] == 'Basic realm="api"'
              '/basic/',
              {'example': 'example'},
              format='json'
          )
        assert response.status_code == status.HTTP_401_UNAUTHORIZED
        assert response['WWW-Authenticate'] == 'Basic realm="api"'
        assert response.status_code == status.HTTP_401_UNAUTHORIZED
        assert response['WWW-Authenticate'] == 'Basic realm="api"'
  
  
  @override_settings(ROOT_URLCONF='tests.test_authentication')
  class SessionAuthTests(TestCase):
      """User session authentication"""
keep keep keep keep replace replace keep keep keep keep keep
 converted authentication_test asserts to pytest 
tests/test_authentication.py