]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Update the behavior of unit test due to the changes in documents logics
authormpv <mpv@opencascade.com>
Mon, 29 Jun 2015 08:32:55 +0000 (11:32 +0300)
committermpv <mpv@opencascade.com>
Mon, 29 Jun 2015 08:32:55 +0000 (11:32 +0300)
src/ModelAPI/Test/TestDocument.py

index a76ac80be0a4d48059d87a436ccac8a287826f43..8080f3654ae3efc4ecf84c8842cdb5ccdae38728 100644 (file)
@@ -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")