Skip to content
This repository was archived by the owner on Jan 13, 2023. It is now read-only.

Commit cc1c4c0

Browse files
committed
Unit test included
1 parent 55ab58d commit cc1c4c0

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

test/transaction/creation_test.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -864,3 +864,20 @@ def test_sign_input_at_error_already_signed(self):
864864

865865
with self.assertRaises(ValueError):
866866
self.bundle.sign_input_at(1, private_key)
867+
868+
def test_create_tag_from_string(self):
869+
"""
870+
Check if string value of tag is converted into a Tag object
871+
"""
872+
873+
transaction = ProposedTransaction(
874+
address=
875+
Address(
876+
b'TESTVALUE9DONTUSEINPRODUCTION99999QARFLF'
877+
b'TDVATBVFTFCGEHLFJBMHPBOBOHFBSGAGWCM9PG9GX'
878+
),
879+
tag="AAAZZZZ999",
880+
value=42,
881+
)
882+
883+
self.assertEqual(type(transaction.tag), type(Tag(b'')))

0 commit comments

Comments
 (0)