              authentication_classes=(IncorrectCredentialsAuth,),
              permission_classes=()
          )
          response = view(request)
          self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN)
          self.assertEqual(response.data, {'detail': 'Bad credentials'})
  
  
  class FailingAuthAccessedInRenderer(TestCase):
      def setUp(self):
          class AuthAccessingRenderer(renderers.BaseRenderer):
 
</s> remove         self.assertEqual(response.status_code,
                         status.HTTP_403_FORBIDDEN)
        self.assertEqual(response.data, {'detail': 'Dummy permission message'})
 </s> add         assert response.status_code == status.HTTP_403_FORBIDDEN
        assert response.data == {'detail': 'Dummy permission message'} </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         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(content, b'not authenticated')
 </s> add         assert content == b'not authenticated'
        assert response.status_code == status.HTTP_403_FORBIDDEN
        assert response.data == {'detail': 'Bad credentials'}
              authentication_classes=(IncorrectCredentialsAuth,),
              permission_classes=()
          )
          response = view(request)
        assert response.status_code == status.HTTP_403_FORBIDDEN
        assert response.data == {'detail': 'Bad credentials'}
        assert response.status_code == status.HTTP_403_FORBIDDEN
        assert response.data == {'detail': 'Bad credentials'}
  
  
  class FailingAuthAccessedInRenderer(TestCase):
      def setUp(self):
          class AuthAccessingRenderer(renderers.BaseRenderer):
keep keep keep keep replace replace keep keep keep keep keep
 converted authentication_test asserts to pytest 
tests/test_authentication.py