@@ -63,7 +63,8 @@ def test_freeze_with_valid_parameters():
6363
6464 # Should have transaction body bytes set
6565 assert len (transaction ._transaction_body_bytes ) > 0
66- assert node_id in transaction ._transaction_body_bytes
66+ assert transaction .transaction_id in transaction ._transaction_body_bytes
67+ # TODO check fro node ids
6768
6869
6970def test_freeze_is_idempotent ():
@@ -464,7 +465,8 @@ def test_freeze_only_builds_for_single_node():
464465
465466 # Should only have one node in the transaction body bytes map
466467 assert len (transaction ._transaction_body_bytes ) == 1
467- assert node_id in transaction ._transaction_body_bytes
468+ assert transaction .transaction_id in transaction ._transaction_body_bytes
469+ # TODO check fro node ids
468470
469471
470472def test_signed_and_unsigned_bytes_are_different ():
@@ -575,7 +577,8 @@ def test_transaction_freeze_with_node_ids(mock_client):
575577 assert tx .node_account_ids == [single_node_id ]
576578 # Verify creates transaction_bytes for single node_id
577579 assert len (tx ._transaction_body_bytes ) == 1
578- assert set (tx ._transaction_body_bytes .keys ()) == {single_node_id }
580+ assert set (tx ._transaction_body_bytes .keys ()) == {tx ._transaction_ids [0 ]}
581+ # TODO check fro node ids
579582
580583 # Case 2 node_account_id list
581584 node_account_ids = [AccountId (0 , 0 , 3 ), AccountId (0 , 0 , 4 )]
@@ -586,8 +589,9 @@ def test_transaction_freeze_with_node_ids(mock_client):
586589
587590 assert tx .node_account_ids == node_account_ids
588591 # Verify creates transaction_bytes for two node_ids
589- assert len (tx ._transaction_body_bytes ) == 2
590- assert set (tx ._transaction_body_bytes .keys ()) == set (node_account_ids )
592+ assert len (tx ._transaction_body_bytes ) == 1
593+ assert set (tx ._transaction_body_bytes .keys ()) == {tx ._transaction_ids [0 ]}
594+ # TODO check fro node ids
591595
592596
593597def test_transaction_freeze_with_node_ids_without_client ():
@@ -606,8 +610,10 @@ def test_transaction_freeze_with_node_ids_without_client():
606610
607611 assert tx .node_account_ids == [single_node_id ]
608612 # Verify creates transaction_bytes for single node_id
609- assert len (tx ._transaction_body_bytes ) == 1
610- assert set (tx ._transaction_body_bytes .keys ()) == {single_node_id }
613+ assert len (tx ._transaction_body_bytes ) == len (tx ._transaction_ids )
614+ assert set (tx ._transaction_body_bytes .keys ()) == {tx .transaction_id }
615+
616+ # TODO: check for node_ids
611617
612618 # Case 2 node_account_id list
613619 node_account_ids = [AccountId (0 , 0 , 3 ), AccountId (0 , 0 , 4 )]
@@ -619,8 +625,9 @@ def test_transaction_freeze_with_node_ids_without_client():
619625
620626 assert tx .node_account_ids == node_account_ids
621627 # Verify creates transaction_bytes for two node_ids
622- assert len (tx ._transaction_body_bytes ) == 2
623- assert set (tx ._transaction_body_bytes .keys ()) == set (node_account_ids )
628+ assert len (tx ._transaction_body_bytes ) == 1
629+ assert set (tx ._transaction_body_bytes .keys ()) == {tx ._transaction_ids [0 ]}
630+ # TODO: check for the node ids
624631
625632
626633def test_transaction_freeze_without_node_ids (mock_client ):
@@ -632,8 +639,10 @@ def test_transaction_freeze_without_node_ids(mock_client):
632639
633640 assert tx .node_account_ids == [node ._account_id for node in mock_client .network .nodes ]
634641 # Verify creates transaction_bytes for client network nodes
635- assert len (tx ._transaction_body_bytes ) == len (mock_client .network .nodes )
636- assert set (tx ._transaction_body_bytes .keys ()) == set (node ._account_id for node in mock_client .network .nodes )
642+ assert len (tx ._transaction_body_bytes ) == len (tx ._transaction_ids )
643+ assert set (tx ._transaction_body_bytes .keys ()) == set (tx_id for tx_id in tx ._transaction_ids )
644+
645+ # TODO: check for node_ids
637646
638647
639648def test_map_response_raises_if_proto_request_is_not_transaction ():
0 commit comments