コード例 #1
0
 def test_iges_load_shape_correct_igs(self):
     iges_handler = IgesHandler()
     shape = iges_handler.load_shape_from_file(
         'tests/test_datasets/test_pipe.igs')
     self.assertEqual(type(topods_Compound(shape)), TopoDS_Compound)
コード例 #2
0
 def test_iges_write_shape_to_file_raises_wrong_extension(self):
     iges_handler = IgesHandler()
     with self.assertRaises(ValueError):
         iges_handler.load_shape_from_file('tests/test_datasets/x.stp')
コード例 #3
0
 def test_iges_load_shape_from_file_raises_wrong_type(self):
     iges_handler = IgesHandler()
     with self.assertRaises(TypeError):
         iges_handler.load_shape_from_file(None)