Salome HOME
Make the VTKReader more flexible.
[modules/med.git] / src / MEDCouplingCorba_Swig / TestMEDCouplingCorbaClt.py
index 3b90840db7b5ab0875d6cd2c2c961330bcb6d173..89c2f9bf1c3a2e6ec7e5847f67c228d2295535f4 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2007-2014  CEA/DEN, EDF R&D
+# Copyright (C) 2007-2015  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -136,6 +136,15 @@ class MEDCouplingCorbaServBasicsTestClt(unittest.TestCase):
         self.assertTrue(_mesh_from_distant.isEqual(meshRef,1e-12))
         pass
 
+    def testCorbaFetchingIMesh(self):
+        meshPtr=self._objC.getIMesh();
+        _mesh_from_distant=MEDCouplingIMeshClient.New(meshPtr);
+        meshPtr.UnRegister();
+        test=MEDCouplingCorbaSwigTest.MEDCouplingCorbaServBasicsTest()
+        meshRef=test.buildIMesh();
+        self.assertTrue(_mesh_from_distant.isEqual(meshRef,1e-12))
+        pass
+
     def testCorbaFetchingCLMesh(self):
         meshPtr=self._objC.getCLMesh();
         _mesh_from_distant=MEDCouplingCurveLinearMeshClient.New(meshPtr);