From c805568ba1d421468927181d7082e16a43cd44cd Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Tue, 19 Jan 2016 09:20:26 +0100 Subject: [PATCH] Simple porting to medfile 3.2.0 --- src/MEDLoader/Swig/MEDLoaderTest1.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/MEDLoader/Swig/MEDLoaderTest1.py b/src/MEDLoader/Swig/MEDLoaderTest1.py index 38ee4afa9..404e45ed3 100644 --- a/src/MEDLoader/Swig/MEDLoaderTest1.py +++ b/src/MEDLoader/Swig/MEDLoaderTest1.py @@ -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)); -- 2.39.2