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