Skip to content

Commit f706672

Browse files
committed
Formatting
1 parent 5dce364 commit f706672

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/pycardano/test_serialization.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,6 +1068,7 @@ class MyTest(DictCBORSerializable):
10681068

10691069
check_two_way_cbor(d)
10701070

1071+
10711072
def test_indefinite_list_highjacking_does_not_break_cbor2():
10721073
ls = IndefiniteFrozenList(["hello"])
10731074
ls.freeze()
@@ -1076,6 +1077,7 @@ def test_indefinite_list_highjacking_does_not_break_cbor2():
10761077
decoded = cbor2.loads(encoded)
10771078
assert isinstance(list(decoded.keys())[0], IndefiniteList)
10781079

1080+
10791081
def test_definite_list_highjacking_does_not_break_cbor2():
10801082
ls = FrozenList(["hello"])
10811083
ls.freeze()
@@ -1084,6 +1086,7 @@ def test_definite_list_highjacking_does_not_break_cbor2():
10841086
decoded = cbor2.loads(encoded)
10851087
assert isinstance(list(decoded.keys())[0], (list, tuple))
10861088

1089+
10871090
def test_indefinite_list_highjacking_does_not_break_cbor2_datum():
10881091
ls = IndefiniteFrozenList(["hello"])
10891092
ls.freeze()
@@ -1094,6 +1097,7 @@ def test_indefinite_list_highjacking_does_not_break_cbor2_datum():
10941097
assert isinstance(list(decoded.keys())[0], CBORTag)
10951098
assert isinstance(list(decoded.keys())[0].value, IndefiniteList)
10961099

1100+
10971101
def test_definite_list_highjacking_does_not_break_cbor2_datum():
10981102
ls = FrozenList(["hello"])
10991103
ls.freeze()

0 commit comments

Comments
 (0)