2 # -*- coding: utf-8 -*-
3 # This test executes the coupling.xml schema found in the current directory
4 # and verifies the execution state.
12 class TestCompo(unittest.TestCase):
14 # creat study and load catalogs
16 SALOMERuntime.RuntimeSALOME_setRuntime()
17 salome_runtime = SALOMERuntime.getSALOMERuntime()
22 mc = salome.naming_service.Resolve('/Kernel/ModulCatalog')
23 ior = salome.orb.object_to_string(mc)
24 session_catalog = salome_runtime.loadCatalog("session", ior)
25 salome_runtime.addCatalog(session_catalog)
27 def test_exec_scheme(self):
31 xmlLoader = loader.YACSLoader()
33 p = xmlLoader.load("coupling.xml")
35 self.fail("IO exception:" + ex);
36 self.assertTrue(p.isValid())
37 e = pilot.ExecutorSwig()
39 self.assertEqual(p.getEffectiveState(), pilot.DONE)
44 if __name__ == '__main__':