From: ageay Date: Tue, 27 Sep 2011 14:39:55 +0000 (+0000) Subject: Non regression test for detected bug (no localization load) in MEDFileData constructor. X-Git-Tag: V6_main_FINAL~948 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=40ca8714b13bae8d92f2e975164be8fc09b2414c;p=tools%2Fmedcoupling.git Non regression test for detected bug (no localization load) in MEDFileData constructor. --- diff --git a/src/MEDLoader/Swig/MEDLoaderTest3.py b/src/MEDLoader/Swig/MEDLoaderTest3.py index 9680b6338..5018668c2 100644 --- a/src/MEDLoader/Swig/MEDLoaderTest3.py +++ b/src/MEDLoader/Swig/MEDLoaderTest3.py @@ -863,6 +863,12 @@ class MEDLoaderTest(unittest.TestCase): f4=ff3.getFieldAtTopLevel(ON_CELLS,1,2) self.assertTrue(f4.getArray().isEqual(f1.getArray(),1e-12)) pass + + def testMEDFieldBug1(self): + fname="Pyfile13.med" + d=MEDFileData.New(fname) + self.assertEqual(('GP_MyFirstFieldOnGaussPoint0', 'GP_MyFirstFieldOnGaussPoint1', 'GP_MyFirstFieldOnGaussPoint2'),d.getFields().getFieldAtPos(0).getLocs()) + pass pass unittest.main()