Salome HOME
Issue #2431 - remove application exit from unit tests
[modules/shaper.git] / src / PythonAPI / Test / TestFeaturesRevolution.py
index abb22a4a423beae7ff3eaced8361140345e5ccd4..37a69b386b3a99a84db0d85b0ada24f8288c5dda 100644 (file)
@@ -1,9 +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<mailto:webmaster.salome@opencascade.com>
+##
+
 import unittest
 
 import ModelAPI
 
-import model
-from model.tools import Selection
+from salome.shaper import model
 
 #-----------------------------------------------------------------------------
 # Fixtures
@@ -19,6 +38,7 @@ class FeaturesAddRevolutionFixture(unittest.TestCase):
 
     def tearDown(self):
         model.end()
+        assert(model.checkPythonDump())
         model.reset()
 
 
@@ -186,4 +206,4 @@ class FeaturesRevolutionTestCase(FeaturesRevolutionFixture):
 
 
 if __name__ == "__main__":
-    unittest.main()
+    unittest.main(exit=False)