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

Method test_bad_plane_input

tests/test_workplanes.py:172–176  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

170 self.assertAlmostEqual(b2.findSolid().Volume(), 1, 5)
171
172 def test_bad_plane_input(self):
173 b2 = Workplane().box(1, 1, 1)
174 with self.assertRaises(ValueError) as context:
175 b2.mirror(b2.edges())
176 self.assertTrue("Face required, got" in str(context.exception))
177
178 def test_mirror_axis(self):
179 """Create a unit box and mirror it so that it doubles in size"""

Callers

nothing calls this directly

Calls 4

WorkplaneClass · 0.85
boxMethod · 0.80
mirrorMethod · 0.45
edgesMethod · 0.45

Tested by

no test coverage detected