X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchPlugin%2FTest%2FTestCreateArcChangeType.py;h=851241a02a20a1cac14eceaade0c995cd3a1b65e;hb=82874628678a6b4eb234bf5663c7707e25dc1589;hp=88ad0c60ed677acca958c6631e3f3f9dd2cb62a3;hpb=84f912d8ca079ae8f0a43826983e77acdfb68bf5;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/Test/TestCreateArcChangeType.py b/src/SketchPlugin/Test/TestCreateArcChangeType.py index 88ad0c60e..851241a02 100644 --- a/src/SketchPlugin/Test/TestCreateArcChangeType.py +++ b/src/SketchPlugin/Test/TestCreateArcChangeType.py @@ -88,19 +88,7 @@ def verifyLastArc(theSketch, theCenter, theStart, theEnd): subroutine to verify position of last arc in the sketch """ aLastArc = model.lastSubFeature(theSketch, "SketchArc") - aCenterPnt = geomDataAPI_Point2D(aLastArc.attribute("center_point")) - aStartPnt = geomDataAPI_Point2D(aLastArc.attribute("start_point")) - aEndPnt = geomDataAPI_Point2D(aLastArc.attribute("end_point")) - if len(theCenter): - verifyPointCoordinates(aCenterPnt, theCenter[0], theCenter[1]) - if len(theStart): - verifyPointCoordinates(aStartPnt, theStart[0], theStart[1]) - if len(theEnd): - verifyPointCoordinates(aEndPnt, theEnd[0], theEnd[1]) - model.assertSketchArc(aLastArc) - -def verifyPointCoordinates(thePoint, theX, theY): - assert thePoint.x() == theX and thePoint.y() == theY, "Wrong '{0}' point ({1}, {2}), expected ({3}, {4})".format(thePoint.id(), thePoint.x(), thePoint.y(), theX, theY) + model.assertArc(aLastArc, theCenter, theStart, theEnd) #=========================================================================