def test_gdsp_no_data(self, mocked_post): ciq_client = CapIQClient("username", "password") return_value = ciq_client.gdsp(["TRIP"], ["IQ_CLOSEPRICE"], ["close_price"], [{}]) self.assertEqual(return_value, {'TRIP:': {'close_price': None}})
def test_gdsp_api_service_error(self, mocked_post): ciq_client = CapIQClient("username", "password") with self.assertRaises(CiqServiceException): ciq_client.gdsp(["TRIP"], ["IQ_CLOSEPRICE"], ["close_price"], [{}])