'Ensure the endpoint returns the correct eligibility data.'

def assert_valid_get_response(self, eligibility):

    url = self.create_url(eligibility)
    response = self.client.get(url)
    self.assertEqual(response.status_code, 200)
    self.assertListEqual(response.data, CreditEligibilitySerializer([eligibility], many=True).data)
