[CMF-checkins] CVS: CMF/CMFStaging/tests - testStaging.py:1.3

Shane Hathaway shane@cvs.zope.org
Mon, 13 May 2002 12:32:12 -0400

Update of /cvs-repository/CMF/CMFStaging/tests
In directory cvs.zope.org:/tmp/cvs-serv10775/tests

Modified Files:
Log Message:
Integrated three optional kinds of automation: the lock tool's auto_version
flag enables automatic checkin / checkout, the staging tool's auto_checkin
flag enables automatic unlock and checkin on staging, and the version tool's
auto_copy_forward flag enables skipping over revisions when checking out.

=== CMF/CMFStaging/tests/testStaging.py 1.2 => 1.3 ===
         self.assert_('c1' not in self.review_stage.objectIds())
         # c1 is ok
-        st.checkContainer(self.dev_stage.c1, 'review')
+        st.checkContainers(self.dev_stage.c1, ['review'])
         # c1 doesn't exist on the review stage yet, so updates
         # to c1.test can't work yet.
-        self.assertRaises(StagingError, st.checkContainer,
-                          self.dev_stage.c1.test, 'review')
+        self.assertRaises(StagingError, st.checkContainers,
+                          self.dev_stage.c1.test, ['review'])
     def testGetURLForStage(self):
         st = self.root.portal_staging