X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDLoader%2FSwig%2FMEDLoaderTest3.py;h=71740199dee19b56cd4ebdc5ee38d4d2e985169c;hb=aafcf704892f03308a84407e898d9e8b19496a1c;hp=e752d3544eb8acf4e011fc0c6b02013c56374024;hpb=32107d60ff318876251c68bf9e54c4d2d0bbd478;p=tools%2Fmedcoupling.git diff --git a/src/MEDLoader/Swig/MEDLoaderTest3.py b/src/MEDLoader/Swig/MEDLoaderTest3.py index e752d3544..71740199d 100644 --- a/src/MEDLoader/Swig/MEDLoaderTest3.py +++ b/src/MEDLoader/Swig/MEDLoaderTest3.py @@ -1,5 +1,5 @@ # -*- coding: iso-8859-1 -*- -# Copyright (C) 2007-2021 CEA/DEN, EDF R&D +# Copyright (C) 2007-2022 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 @@ -4989,6 +4989,9 @@ class MEDLoaderTest3(unittest.TestCase): self.assertFalse( joint1st_1.isEqual( joint1st_4 )) self.assertFalse( joint1st_4.isEqual( joint1st_5 )) self.assertFalse( joint1st_4.isEqual( joint1st_6 )) + self.assertEqual(1,joint1st_6.getNumberOfCorrespondences()) + joint1st_6.clearCorrespondences() + self.assertEqual(0,joint1st_6.getNumberOfCorrespondences()) one_joint=MEDFileJoint() one_joint.pushStep(joint1st_1) one_joint.setLocalMeshName("maa1") @@ -5001,6 +5004,12 @@ class MEDLoaderTest3(unittest.TestCase): self.assertEqual( "joint_description", one_joint.getDescription()) self.assertEqual( 1, one_joint.getDomainNumber()) self.assertEqual( "joint_1", one_joint.getJointName()) + one_joint_copy = one_joint.deepCopy() + self.assertEqual( "maa1", one_joint_copy.getLocalMeshName()) + self.assertEqual( "maa2", one_joint_copy.getRemoteMeshName()) + self.assertEqual( "joint_description", one_joint_copy.getDescription()) + self.assertEqual( 1, one_joint_copy.getDomainNumber()) + self.assertEqual( "joint_1", one_joint_copy.getJointName()) pass @unittest.skipUnless('linux'==platform.system().lower(),"stderr redirection not ported on Windows ?")