From 40ca8714b13bae8d92f2e975164be8fc09b2414c Mon Sep 17 00:00:00 2001 From: ageay Date: Tue, 27 Sep 2011 14:39:55 +0000 Subject: [PATCH] Non regression test for detected bug (no localization load) in MEDFileData constructor. --- src/MEDLoader/Swig/MEDLoaderTest3.py | 6 ++++++ 1 file changed, 6 insertions(+) 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() -- 2.39.2