def test_raw_call_batch(self, m_req): api = Client(ENDPOINT, APPLICATION_KEY, APPLICATION_SECRET) _run(api.init()) r = _run(api.raw_call(FAKE_METHOD, FAKE_PATH_BATCH, None, False, ',')) self.assertEqual(r, ["first item", "second item"])
def test_raw_call(self, m_req): api = Client(ENDPOINT, APPLICATION_KEY, APPLICATION_SECRET) _run(api.init()) r = _run(api.raw_call(FAKE_METHOD, FAKE_PATH, None, False)) self.assertEqual(r, "Let's assume requests will return this")