Navigation Menu

Skip to content

Commit

Permalink
Don't assume :)
Browse files Browse the repository at this point in the history
svn path=/CMFEditions/trunk/; revision=41294
  • Loading branch information
optilude committed Apr 29, 2007
1 parent 2822346 commit 3fe3ded
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Products/CMFEditions/tests/test_IntegrationTests.py
Expand Up @@ -140,6 +140,8 @@ def test06_retrieveSpecificVersion(self):
portal_repo = self.portal.portal_repository
doc = self.portal.doc

review_state = self.portal.portal_workflow.getInfoFor(doc, 'review_state')

# store the work edition two times
doc.setTitle("v1")
portal_repo.applyVersionControl(doc)
Expand All @@ -157,9 +159,8 @@ def test06_retrieveSpecificVersion(self):
self.assertEqual(self.portal.doc.Title(), "v4")

# since 1.0beta1 the workflows review state is saved to the
# system metadata by a modifier. We asssume here the default
# review state is "visible"
self.assertEqual(retrieved_doc.sys_metadata["review_state"], "visible")
# system metadata by a modifier.
self.assertEqual(retrieved_doc.sys_metadata["review_state"], review_state)

def test07_cloneObjectUnderVersionControlRemovesOriginalsHistory(self):
portal_repo = self.portal.portal_repository
Expand Down

0 comments on commit 3fe3ded

Please sign in to comment.