Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added the removeLast method into AttributeRefList
[modules/shaper.git]
/
src
/
ModelAPI
/
Test
/
TestDocument.py
diff --git
a/src/ModelAPI/Test/TestDocument.py
b/src/ModelAPI/Test/TestDocument.py
index e0f7da4be1b910f394de5d1502248c4733531652..8080f3654ae3efc4ecf84c8842cdb5ccdae38728 100644
(file)
--- a/
src/ModelAPI/Test/TestDocument.py
+++ b/
src/ModelAPI/Test/TestDocument.py
@@
-77,13
+77,14
@@
assert(aSession.moduleDocument().size("Parts") == 2)
aSession.startOperation()
aPart.addFeature("Remove")
aSession.finishOperation()
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.moduleDocument().size("Parts") == 1)
-assert(aSession.activeDocument().id() == a
Session.moduleDocument()
.id())
+assert(aSession.activeDocument().id() == a
CopyOfPart
.id())
# Remove another one document
aSession.startOperation()
# Remove another one document
aSession.startOperation()
-aDoc
1 = aSession.document("Part_1
")
-aSession.setActiveDocument(aDoc
1
, False)
-aDoc
1
.addFeature("Remove")
+aDoc
2 = aSession.document("Part_2
")
+aSession.setActiveDocument(aDoc
2
, False)
+aDoc
2
.addFeature("Remove")
aSession.finishOperation()
assert(aSession.moduleDocument().size("Parts") == 0)
assert(aSession.activeDocument())
aSession.finishOperation()
assert(aSession.moduleDocument().size("Parts") == 0)
assert(aSession.activeDocument())