def test_to_json_with_transaction(tx, expected): assert Web3.toJSON(tx) == expected
def test_to_json(val, expected): assert Web3.toJSON(val) == expected