示例#1
0
 def setUp(self):
     self.source = SRC_DWG[self.VERSION]
     self.target = create_target_drawing(self.VERSION)
     self.importer = Importer(self.source, self.target)
示例#2
0
 def test_raise_error_ac1009_to_ac1015(self):
     with self.assertRaises(TypeError):
         Importer(self.ac1009, self.ac1015, strict_mode=True)
示例#3
0
 def test_ac1024_to_ac1015(self):
     importer = Importer(self.ac1024, self.ac1015, strict_mode=False)
     self.assertFalse(importer.is_compatible())
示例#4
0
 def test_ac1009_to_ac1009(self):
     importer = Importer(self.ac1009, self.ac1009, strict_mode=False)
     self.assertTrue(importer.is_compatible())