              '/basic/',
              {'example': 'example'},
              HTTP_AUTHORIZATION=auth
          )
          self.assertEqual(response.status_code, status.HTTP_200_OK)
  
      def test_post_json_passing_basic_auth(self):
          """Ensure POSTing form over basic auth with correct credentials passes and does not require CSRF"""
          credentials = ('%s:%s' % (self.username, self.password))
          base64_credentials = base64.b64encode(
 
</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_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
        assert response.status_code == status.HTTP_200_OK
              '/basic/',
              {'example': 'example'},
              HTTP_AUTHORIZATION=auth
          )
        assert response.status_code == status.HTTP_200_OK
  
      def test_post_json_passing_basic_auth(self):
          """Ensure POSTing form over basic auth with correct credentials passes and does not require CSRF"""
          credentials = ('%s:%s' % (self.username, self.password))
          base64_credentials = base64.b64encode(
keep keep keep keep replace keep keep keep keep keep
 converted authentication_test asserts to pytest 
tests/test_authentication.py