7 class ExchangeTestCase(unittest.TestCase):
10 self.session = ModelAPI.ModelAPI_Session.get()
11 self.doc = self.session.moduleDocument()
14 assert(model.checkPythonDump())
15 self.session.closeAll()
17 def test_addImport(self):
18 self.session.startOperation()
19 self.feature = ExchangeAPI.addImport(self.doc, "file_path")
20 self.session.finishOperation()
22 def test_addExport(self):
23 self.session.startOperation()
24 self.feature = ExchangeAPI.exportToFile(self.doc, "file_path", [], "file_format")
25 self.session.finishOperation()
27 if __name__ == "__main__":