]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Simple porting to medfile 3.2.0
authorAnthony Geay <anthony.geay@edf.fr>
Tue, 19 Jan 2016 08:20:26 +0000 (09:20 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Tue, 19 Jan 2016 08:20:26 +0000 (09:20 +0100)
src/MEDLoader/Swig/MEDLoaderTest1.py

index 38ee4afa9671e1d4251aa830e5644ab2fb5b6a13..404e45ed3b8c182f8aead0aa0f7d544289219050 100644 (file)
@@ -260,10 +260,11 @@ class MEDLoaderTest(unittest.TestCase):
         #
         ret=MEDLoader.MEDLoader.GetMeshFamiliesNamesOnGroup(fileName,"3DToto","3DMesh_1");
         self.assertEqual(4,len(ret));
-        self.assertEqual(ret[0],"Family_-2");
-        self.assertEqual(ret[1],"Family_-3");
-        self.assertEqual(ret[2],"Family_-4");
-        self.assertEqual(ret[3],"Family_-5");
+        ref=['Family_-3','Family_-4','Family_-2','Family_-5']
+        self.assertIn(ref[0],ret);
+        self.assertIn(ref[1],ret);
+        self.assertIn(ref[2],ret);
+        self.assertIn(ref[3],ret);
         #
         ret1=MEDLoader.MEDLoader.GetMeshGroupsNamesOnFamily(fileName,"3DToto","Family_-3");
         self.assertEqual(2,len(ret1));