def test_list(self): """Function defined to test paystackapi plan list method.""" httpretty.register_uri( httpretty.GET, "https://api.paystack.co/plan", content_type='text/json', body='{"status": true, "contributors": true}', status=201, ) response = Plan.list() self.assertEqual(response['status'], True)
def test_list(self): """Method defined to test paystackapi plan list.""" httpretty.register_uri( httpretty.GET, self.endpoint_url("/plan"), content_type='text/json', body='{"status": true, "contributors": true}', status=201, ) response = Plan.list() self.assertEqual(response['status'], True)