X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConstructionAPI%2FTest%2FTestAxis.py;h=995577136490c12f31ed28b1bdc6e7862fcd9b7a;hb=ca925f26180f15699a77e76461679f11abd499ba;hp=626ff62b76924566020f5df9da1cbc0db232629a;hpb=db896272916fa3cc065dab5a202b3bd4854657a6;p=modules%2Fshaper.git diff --git a/src/ConstructionAPI/Test/TestAxis.py b/src/ConstructionAPI/Test/TestAxis.py index 626ff62b7..995577136 100644 --- a/src/ConstructionAPI/Test/TestAxis.py +++ b/src/ConstructionAPI/Test/TestAxis.py @@ -1,7 +1,28 @@ +## Copyright (C) 2014-2017 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 +## License as published by the Free Software Foundation; either +## version 2.1 of the License, or (at your option) any later version. +## +## This library is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +## Lesser General Public License for more details. +## +## You should have received a copy of the GNU Lesser General Public +## License along with this library; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +## +## See http:##www.salome-platform.org/ or +## email : webmaster.salome@opencascade.com +## + import unittest import ModelAPI import ConstructionAPI +from salome.shaper import model class AxisTestCase(unittest.TestCase): @@ -14,6 +35,7 @@ class AxisTestCase(unittest.TestCase): self.session.finishOperation() def tearDown(self): + assert(model.checkPythonDump()) self.session.closeAll() def test_ConstructorWithDimensions(self): @@ -23,4 +45,4 @@ class AxisTestCase(unittest.TestCase): self.assertEqual(100,axis.zDimension().value()) if __name__ == "__main__": - unittest.main() + unittest.main(exit=False)