X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FConstructionPlugin%2FTest%2FTestPointName.py;h=df76871f2d02cf6e0488d9e9df9c8fbbdea7a3f8;hb=dbba795b3b4b4fbefc9a0cf63a49a451f63737f7;hp=740bd52df948bef566b46c4c73af4f5cfc80a296;hpb=f6cb1fdedc4af583c05faf3f4f55fe67b49e211a;p=modules%2Fshaper.git diff --git a/src/ConstructionPlugin/Test/TestPointName.py b/src/ConstructionPlugin/Test/TestPointName.py index 740bd52df..df76871f2 100644 --- a/src/ConstructionPlugin/Test/TestPointName.py +++ b/src/ConstructionPlugin/Test/TestPointName.py @@ -6,10 +6,11 @@ aDoc = aSession.moduleDocument() aSession.startOperation() aFeature = aDoc.addFeature("Point") aFeatureData = aFeature.data() +assert(aFeatureData is not None) aFeatureData.real("x").setValue(0.) aFeatureData.real("y").setValue(0.) aFeatureData.real("z").setValue(0.) -aFeatureName = aFeatureData.name() +aFeatureName = aFeature.name() aFeature.execute() aSession.finishOperation()