'Verify the endpoint returns HTTP 404 if the credit provider is not valid.'

def test_post_invalid_provider(self):

    path = reverse(u'credit:create_request', kwargs={u'provider_id': u'fake'})
    response = self.client.post(path, {})
    self.assertEqual(response.status_code, 404)
