MCPcopy Create free account
hub / github.com/danieljfarrell/pvtrace / test_equality

Method test_equality

tests/test_intersection.py:19–23  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

17 assert type(inter) == Intersection
18
19 def test_equality(self):
20 node = Node(name='A')
21 inter1 = Intersection(coordsys=Node, hit=Node, point=(0.0, 0.0, 0.0), distance=0.0)
22 inter2 = Intersection(coordsys=Node, hit=Node, point=(0.0, 0.0, 0.0), distance=0.0)
23 assert inter1 == inter2
24
25
26if __name__ == '__main__':

Callers

nothing calls this directly

Calls 2

NodeClass · 0.90
IntersectionClass · 0.90

Tested by

no test coverage detected