  
      def test_post_form_failing_basic_auth(self):
          """Ensure POSTing form over basic auth without correct credentials fails"""
          response = self.csrf_client.post('/basic/', {'example': 'example'})
          self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED)
  
      def test_post_json_failing_basic_auth(self):
          """Ensure POSTing json over basic auth without correct credentials fails"""
          response = self.csrf_client.post(
              '/basic/',
 
</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_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_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
        assert response.status_code == status.HTTP_401_UNAUTHORIZED
  
      def test_post_form_failing_basic_auth(self):
          """Ensure POSTing form over basic auth without correct credentials fails"""
          response = self.csrf_client.post('/basic/', {'example': 'example'})
        assert response.status_code == status.HTTP_401_UNAUTHORIZED
  
      def test_post_json_failing_basic_auth(self):
          """Ensure POSTing json over basic auth without correct credentials fails"""
          response = self.csrf_client.post(
              '/basic/',
keep keep keep keep replace keep keep keep keep keep
 converted authentication_test asserts to pytest 
tests/test_authentication.py