Skip to content

Commit

Permalink
test: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Jul 24, 2023
1 parent df472fc commit 41dcd69
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/functional/test_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,9 @@ def test_transaction_dict_excludes_none_values():
txn.value = None # type: ignore
actual = txn.dict()
assert "value" not in actual


def test_txn_str_when_data_is_bytes(ethereum):
txn = ethereum.create_transaction(data=HexBytes("0x123"))
actual = str(txn)
assert isinstance(actual, str)

0 comments on commit 41dcd69

Please sign in to comment.