Esempio n. 1
0
 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"])
Esempio n. 2
0
 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")