'Verify the endpoint returns a list of all CreditProvider objects.'

def test_list(self):

    response = self.client.get(self.path)
    self.assertEqual(response.status_code, 200)
    expected = CreditProviderSerializer(CreditProvider.objects.all(), many=True).data
    self.assertEqual(response.data, expected)
