def test_mempool_include_transfer(self, sandbox: Sandbox, session: dict): assert utils.check_mempool_contains_operations( sandbox.client(1), [session['trsfr_hash']] ) assert utils.check_mempool_contains_operations( sandbox.client(2), [session['trsfr_hash']] ) assert sandbox.client(3).mempool_is_empty()
def test_mempool_contains_endorse_and_transfer(self, clients, session): endorse_hash = session["endorse_hash"] transfer_hash = session["transfer_hash"] operation_hashes = [endorse_hash, transfer_hash] for client in clients: assert utils.check_mempool_contains_operations( client, operation_hashes)
def test_operation_applied(self, sandbox: Sandbox, session: dict): """Check operation is in mempool""" client = sandbox.client(1) assert utils.check_mempool_contains_operations(client, [session['operation']])