def test_get_entity_with_term_query(self): api = RawApiClient() res = api.query({ "from": "entity", "where": { "type": "Airport" }, "limit": 1 }) self.assertIsInstance(res, rfapi.query.JSONQueryResponse)
def test_invalid_query(self): with self._assertRaisesRegex(rfapi.error.HttpError, "No such query"): client = RawApiClient() client.query({"apa": "bepa"})