(self)
| 2374 | self.assertEqual(8, result.solids().item(0).faces().size()) |
| 2375 | |
| 2376 | def testSplitError(self): |
| 2377 | # Test split produces the correct error when called with no solid to split. |
| 2378 | w = Workplane().hLine(1).vLine(1).close() |
| 2379 | with raises(ValueError): |
| 2380 | w.split(keepTop=True) |
| 2381 | |
| 2382 | # Split should raise ValueError when called with no side kept |
| 2383 | with raises(ValueError): |
| 2384 | w.split(keepTop=False, keepBottom=False) |
| 2385 | |
| 2386 | def testBoxDefaults(self): |
| 2387 | """ |