def _run_load(tx_left, stats): logstats.thread.start(stats) client = temp_client() while True: tx = client.create() stats['transactions'] += 1 if tx_left is not None: tx_left -= 1 if tx_left == 0: break
def client(): from bigchaindb.client import temp_client return temp_client()
def test_temp_client_returns_a_temp_client(): from bigchaindb.client import temp_client client = temp_client() assert client.public_key assert client.private_key