Salome HOME
Improve ExchangePlugin code coverage
[modules/shaper.git] / src / FeaturesPlugin / Test / TestPlacement_ErrorMsg.py
index fe0b6cabc773a057f77565ee9fa1296fc006b497..4a37077413d5437459872ae967f9db5d421b05f6 100644 (file)
@@ -79,3 +79,10 @@ aPlacementFt.boolean("placement_centering").setValue(True)
 aPlacementFt.execute()
 aSession.finishOperation()
 assert(aPlacementFt.error() == "")
+
+
+model.begin()
+Placement_2 = model.addPlacement(Part_1_doc, [model.selection("SOLID", "Placement_1_1")], model.selection("COMPOUND", "Sketch_1"), model.selection("FACE", "Extrusion_1_1/To_Face"), False, False)
+assert(Placement_2.feature().error() != "")
+Part_1_doc.removeFeature(Placement_2.feature())
+model.end()