6 class ExchangeTestCase(unittest.TestCase):
9 self.session = ModelAPI.ModelAPI_Session.get()
10 self.doc = self.session.moduleDocument()
13 self.session.closeAll()
15 def test_addImport(self):
16 self.session.startOperation()
17 self.feature = ExchangeAPI.addImport(self.doc, "file_path")
18 self.session.finishOperation()
20 def test_addExport(self):
21 self.session.startOperation()
22 self.feature = ExchangeAPI.exportToFile(self.doc, "file_path", [], "file_format")
23 self.session.finishOperation()
25 if __name__ == "__main__":