Add tests for trace entries
@@ -64,3 +64,13 @@ class Assertion:
Returns: the cloned assertion
"""
+
+ def __eq__(self, other: object) -> bool:
+ if not isinstance(other, Assertion):
+ return False
+ if self is other:
+ return True
+ return self._source == other._source and self._value == other._value
+
+ def __hash__(self) -> int:
+ return hash((self._source, self._value))
