Salome HOME
Fix for the issue #1928
[modules/shaper.git] / src / PythonAPI / Test / TestFeatures.py
index 35ff9679ed2a1f4db704c3447597ad29e6a98182..549d6583b1929d8ff6475d66390d198953c1b15d 100644 (file)
@@ -18,6 +18,9 @@ class FeaturesFixture(unittest.TestCase):
 
     def tearDown(self):
         model.end()
+        # assert(model.checkPythonDump())
+        # This test checks creation of High API classes from low-level.
+        # It does not set any attributes, so features invalid, and dump also invalid.
         model.reset()
 
 #-----------------------------------------------------------------------------
@@ -71,8 +74,10 @@ class FeaturesTestCase(FeaturesFixture):
         FeaturesAPI.FeaturesAPI_Placement(self.part.addFeature("Placement"))
         FeaturesAPI.FeaturesAPI_Rotation(self.part.addFeature("Rotation"))
         FeaturesAPI.FeaturesAPI_Translation(self.part.addFeature("Translation"))
-        FeaturesAPI.FeaturesAPI_Group(self.part.addFeature("Group"))
-        
+
+        import CollectionAPI
+        CollectionAPI.CollectionAPI_Group(self.part.addFeature("Group"))
+
         import PrimitivesAPI
         PrimitivesAPI.PrimitivesAPI_Box(self.part.addFeature("Box"))