MCPcopy
hub / github.com/CadQuery/cadquery / testPlaneNotEqual

Method testPlaneNotEqual

tests/test_cad_objects.py:546–566  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

544 )
545
546 def testPlaneNotEqual(self):
547 # type difference
548 for value in [None, 0, 1, "abc"]:
549 self.assertNotEqual(
550 Plane(origin=(0, 0, 0), xDir=(1, 0, 0), normal=(0, 0, 1)), value
551 )
552 # origin difference
553 self.assertNotEqual(
554 Plane(origin=(0, 0, 0), xDir=(1, 0, 0), normal=(0, 0, 1)),
555 Plane(origin=(0, 0, 1), xDir=(1, 0, 0), normal=(0, 0, 1)),
556 )
557 # x-axis difference
558 self.assertNotEqual(
559 Plane(origin=(0, 0, 0), xDir=(1, 0, 0), normal=(0, 0, 1)),
560 Plane(origin=(0, 0, 0), xDir=(1, 1, 0), normal=(0, 0, 1)),
561 )
562 # z-axis difference
563 self.assertNotEqual(
564 Plane(origin=(0, 0, 0), xDir=(1, 0, 0), normal=(0, 0, 1)),
565 Plane(origin=(0, 0, 0), xDir=(1, 0, 0), normal=(0, 1, 1)),
566 )
567
568 def testInvalidPlane(self):
569 # Test plane creation error handling

Callers

nothing calls this directly

Calls 1

PlaneClass · 0.85

Tested by

no test coverage detected