              authentication_classes=(),
              permission_classes=(DummyPermission,),
          )
          response = view(request)
          self.assertEqual(response.status_code,
                           status.HTTP_403_FORBIDDEN)
          self.assertEqual(response.data, {'detail': 'Dummy permission message'})
 
</s> remove         self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN)
        self.assertEqual(response.data, {'detail': 'Bad credentials'})
 </s> add         assert response.status_code == status.HTTP_403_FORBIDDEN
        assert response.data == {'detail': 'Bad credentials'} </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_403_FORBIDDEN)
 </s> add         assert response.status_code == status.HTTP_403_FORBIDDEN </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_403_FORBIDDEN
        assert response.data == {'detail': 'Dummy permission message'}
              authentication_classes=(),
              permission_classes=(DummyPermission,),
          )
          response = view(request)
        assert response.status_code == status.HTTP_403_FORBIDDEN
        assert response.data == {'detail': 'Dummy permission message'}
        assert response.status_code == status.HTTP_403_FORBIDDEN
        assert response.data == {'detail': 'Dummy permission message'}
        assert response.status_code == status.HTTP_403_FORBIDDEN
        assert response.data == {'detail': 'Dummy permission message'}
keep keep keep keep replace replace replace
 converted authentication_test asserts to pytest 
tests/test_authentication.py