Example #1
0
 def test_iges_write_shape_to_file_igs(self):
     ihp = BRepPrimAPI_MakeBox(1., 1., 1.).Shape()
     path = 'tests/test_datasets/x.igs'
     iges_handler = IgesHandler()
     iges_handler.write_shape_to_file(ihp, path)
     self.assertTrue(os.path.exists(path))
     self.addCleanup(os.remove, path)
Example #2
0
 def test_iges_write_shape_to_file_raises_wrong_type(self):
     iges_handler = IgesHandler()
     with self.assertRaises(TypeError):
         iges_handler.write_shape_to_file(None, None)