File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -51,13 +51,17 @@ def __eq__(self, other):
5151 f"_labels different between { self ._id } and { other ._id } : { self ._labels } vs { other ._labels } "
5252 )
5353 return False
54+
55+ if len (self ._properties ) != len (other ._properties ):
56+ return False
5457 for k , v in self ._properties .items ():
5558 if k not in other ._properties :
5659 logger .debug (f"Property with key { k } not in { other ._properties .keys ()} " )
5760 return False
5861 if v != other ._properties [k ]:
5962 logger .debug (f"Value { v } not equal to { other ._properties [k ]} " )
6063 return False
64+
6165 return True
6266
6367
@@ -100,6 +104,9 @@ def __eq__(self, other):
100104 if self ._label != other ._label :
101105 logger .debug (f"Label is different { self ._label } <> { other ._label } " )
102106 return False
107+
108+ if len (self ._properties ) != len (other ._properties ):
109+ return False
103110 for k , v in self ._properties .items ():
104111 if k not in other ._properties :
105112 logger .debug (f"Property with key { k } not in { other ._properties .keys ()} " )
You can’t perform that action at this time.
0 commit comments