def test_testgiver_getaccount_state_parallel(self): t = TonlibClientFutures(threads=5) fts = [t.testgiver_getaccount_state() for _ in range(10)] ress = [f.result() for f in fts] [self.assertIsInstance(r, dict) for r in ress] [self.assertEqual('testGiver.accountState', r['@type']) for r in ress]
def test_testgiver_getaccount_state(self): t = TonlibClientFutures() ft = t.testgiver_getaccount_state() res = ft.result() self.assertIsInstance(res, dict) self.assertEqual('testGiver.accountState', res['@type'])