Skip to content

Commit 0cf36cd

Browse files
winsvegaspencer-tb
authored andcommitted
test(fw): Unit tests for post state verification.
1 parent afb3164 commit 0cf36cd

12 files changed

+233
-13
lines changed

src/ethereum_test_tools/common/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ def must_contain(self, address: str, other: "Storage"):
500500
raise Storage.MissingKey(key=key)
501501
elif self.data[key] != other.data[key]:
502502
raise Storage.KeyValueMismatch(
503-
address=address, key=key, got=self.data[key], want=other.data[key]
503+
address=address, key=key, want=self.data[key], got=other.data[key]
504504
)
505505

506506
def must_be_equal(self, address: str, other: "Storage"):
@@ -511,7 +511,7 @@ def must_be_equal(self, address: str, other: "Storage"):
511511
for key in self.data.keys() & other.data.keys():
512512
if self.data[key] != other.data[key]:
513513
raise Storage.KeyValueMismatch(
514-
address=address, key=key, got=self.data[key], want=other.data[key]
514+
address=address, key=key, want=self.data[key], got=other.data[key]
515515
)
516516

517517
# Test keys contained in either one of the storage objects
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
"""
2+
`ethereum_test_tools.filling` verification tests.
3+
"""

0 commit comments

Comments
 (0)