              {'example': 'example'},
              format='json',
              HTTP_AUTHORIZATION=auth
          )
          self.assertEqual(response.status_code, status.HTTP_200_OK)
  
      def test_regression_handle_bad_base64_basic_auth_header(self):
          """Ensure POSTing JSON over basic auth with incorrectly padded Base64 string is handled correctly"""
          # regression test for issue in 'rest_framework.authentication.BasicAuthentication.authenticate'
          # https://github.com/tomchristie/django-rest-framework/issues/4089
 
</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 </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_200_OK
              {'example': 'example'},
              format='json',
              HTTP_AUTHORIZATION=auth
          )
        assert response.status_code == status.HTTP_200_OK
  
      def test_regression_handle_bad_base64_basic_auth_header(self):
          """Ensure POSTing JSON over basic auth with incorrectly padded Base64 string is handled correctly"""
          # regression test for issue in 'rest_framework.authentication.BasicAuthentication.authenticate'
          # https://github.com/tomchristie/django-rest-framework/issues/4089
keep keep keep keep replace keep keep keep keep keep
 converted authentication_test asserts to pytest 
tests/test_authentication.py