          """
          response = self.csrf_client.post(
              self.path, {'example': 'example'}, format='json'
          )
          self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED)
  
  
  @override_settings(ROOT_URLCONF='tests.test_authentication')
  class TokenAuthTests(BaseTokenAuthTests, TestCase):
      model = Token
 
</s> remove         response = client.post('/auth-token/',
                               {'username': self.username, 'password': self.password})
        self.assertEqual(response.status_code, status.HTTP_200_OK)
        self.assertEqual(response.data['token'], self.key)
 </s> add         response = client.post(
            '/auth-token/',
            {'username': self.username, 'password': self.password}
        )
        assert response.status_code == status.HTTP_200_OK
        assert response.data['token'] == self.key </s> remove         self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED)
        self.assertEqual(response['WWW-Authenticate'], 'Basic realm="api"')
 </s> add         assert response.status_code == status.HTTP_401_UNAUTHORIZED
        assert response['WWW-Authenticate'] == 'Basic realm="api"' </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_200_OK)
 </s> add         assert response.status_code == status.HTTP_200_OK </s> remove         self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN)
 </s> add         assert response.status_code == status.HTTP_403_FORBIDDEN
        assert response.status_code == status.HTTP_401_UNAUTHORIZED
          """
          response = self.csrf_client.post(
              self.path, {'example': 'example'}, format='json'
          )
        assert response.status_code == status.HTTP_401_UNAUTHORIZED
  
  
  @override_settings(ROOT_URLCONF='tests.test_authentication')
  class TokenAuthTests(BaseTokenAuthTests, TestCase):
      model = Token
keep keep keep keep replace keep keep keep keep keep
 converted authentication_test asserts to pytest 
tests/test_authentication.py