From: mpv Date: Mon, 29 Jun 2015 08:32:55 +0000 (+0300) Subject: Update the behavior of unit test due to the changes in documents logics X-Git-Tag: V_1.3.0~173 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=118b7bdf7dc5b9388ec6b83bf8350e2cc3a45978;p=modules%2Fshaper.git Update the behavior of unit test due to the changes in documents logics --- diff --git a/src/ModelAPI/Test/TestDocument.py b/src/ModelAPI/Test/TestDocument.py index a76ac80be..8080f3654 100644 --- a/src/ModelAPI/Test/TestDocument.py +++ b/src/ModelAPI/Test/TestDocument.py @@ -77,8 +77,9 @@ assert(aSession.moduleDocument().size("Parts") == 2) aSession.startOperation() aPart.addFeature("Remove") aSession.finishOperation() +# First part is deleted, but active is Part_2, so, it is still active assert(aSession.moduleDocument().size("Parts") == 1) -assert(aSession.activeDocument().id() == aSession.moduleDocument().id()) +assert(aSession.activeDocument().id() == aCopyOfPart.id()) # Remove another one document aSession.startOperation() aDoc2 = aSession.document("Part_2")