@@ -24,8 +24,10 @@ def test_transaction_executes_successfully(env):
2424 receipt = tx .execute (executor_client )
2525
2626 # Verify that the transaction_bodys are generated for all nodes present in client network
27- assert len (tx ._transaction_body_bytes ) == len (env .client .network .nodes )
28- assert set (tx ._transaction_body_bytes .keys ()) == {node ._account_id for node in env .client .network .nodes }
27+ assert len (tx ._transaction_body_bytes ) == len (tx ._transaction_ids )
28+ assert set (tx ._transaction_body_bytes .keys ()) == set (tx ._transaction_ids )
29+
30+ # TODO: check for node_ids
2931
3032 assert receipt .status == ResponseCode .SUCCESS , "Transaction must execute successfully"
3133
@@ -43,8 +45,10 @@ def test_transaction_executes_successfully_with_node_account_ids(env):
4345 tx .sign (executor_key )
4446
4547 # Verify that the transaction_bodys are generated for the provided node_account_ids only
46- assert len (tx ._transaction_body_bytes ) == 2
47- assert set (tx ._transaction_body_bytes .keys ()) == set (node_account_ids )
48+ assert len (tx ._transaction_body_bytes ) == len (tx ._transaction_ids )
49+ assert set (tx ._transaction_body_bytes .keys ()) == set (tx ._transaction_ids )
50+
51+ # TODO: check for the node_ids
4852
4953 receipt = tx .execute (executor_client )
5054 assert receipt .status == ResponseCode .SUCCESS , "Transaction must execute successfully"
@@ -63,8 +67,10 @@ def test_transaction_executes_successfully_with_single_node_account_id(env):
6367 tx .sign (executor_key )
6468
6569 # Verify that the transaction_bodys are generated for the provided node_account_id only
66- assert len (tx ._transaction_body_bytes ) == 1
67- assert set (tx ._transaction_body_bytes .keys ()) == {node_account_id }
70+ assert len (tx ._transaction_body_bytes ) == len (tx ._transaction_ids )
71+ assert set (tx ._transaction_body_bytes .keys ()) == set (tx ._transaction_ids )
72+
73+ # TODO: check for node_ids
6874
6975 receipt = tx .execute (executor_client )
7076 assert receipt .status == ResponseCode .SUCCESS , "Transaction must execute successfully"
0 commit comments