We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2226a66 commit b60af4dCopy full SHA for b60af4d
tests/unit/core/test_domain.py
@@ -163,3 +163,14 @@ def test__eq__(self):
163
assert a1 != ActionDomain(id=2, name="action")
164
assert a1 != ActionDomain(id=1, name="something")
165
assert a1 != SomeOtherDomain(id=1, name="action")
166
+
167
+ def test_nested__eq__(self):
168
+ child1 = ActionDomain(id=1, name="child")
169
+ d1 = SomeOtherDomain(id=1, name="parent", child=child1)
170
+ d2 = SomeOtherDomain(id=1, name="parent", child=child1)
171
172
+ assert d1 == d2
173
174
+ d2.child = ActionDomain(id=2, name="child2")
175
176
+ assert d1 != d2
0 commit comments