Salome HOME
Make unit-tests produce an error if the function for test of naming gets feature...
[modules/shaper.git] / src / PythonAPI / model / tests / tests.py
index 92ff8a609bc19296865ceed3a4436be036c3c0fd..ea60df69f808207f5444c40400f59ce937651f64 100644 (file)
@@ -263,6 +263,7 @@ def testHaveNamingSubshapes(theFeature, theModel, thePartDoc) :
   """ Tests if all vertices/edges/faces of result have a unique name
   :param theFeature: feature to test.
   """
+  assert(len(theFeature.results()) > 0)
   testHaveNamingByType(theFeature, theModel, thePartDoc, GeomAPI_Shape.VERTEX)
   testHaveNamingByType(theFeature, theModel, thePartDoc, GeomAPI_Shape.EDGE)
   testHaveNamingByType(theFeature, theModel, thePartDoc, GeomAPI_Shape.FACE)