[CMF-checkins] CVS: CMF/CMFSetup/tests - test_tool.py:1.9

Tres Seaver tseaver at zope.com
Mon May 24 15:54:27 EDT 2004


Update of /cvs-repository/CMF/CMFSetup/tests
In directory cvs.zope.org:/tmp/cvs-serv21306/tests

Modified Files:
	test_tool.py 
Log Message:


  - tool.py:
  
    o Add ZMI for browsing / creating snapshots (no diffs yet).


=== CMF/CMFSetup/tests/test_tool.py 1.8 => 1.9 ===
--- CMF/CMFSetup/tests/test_tool.py:1.8	Mon May 24 15:13:10 2004
+++ CMF/CMFSetup/tests/test_tool.py	Mon May 24 15:53:56 2004
@@ -536,6 +536,8 @@
         site.portal_setup = self._makeOne()
         tool = site.portal_setup
 
+        self.assertEqual( len( tool.listSnapshotInfo() ), 0 )
+
         result = tool.createSnapshot( 'default' )
 
         self.assertEqual( len( result[ 'steps' ] ), 1 )
@@ -556,6 +558,13 @@
 
         fileobj = snapshot._getOb( 'export_steps.xml' )
         self.assertEqual( fileobj.read() , _DEFAULT_STEP_REGISTRIES_EXPORT_XML )
+
+        self.assertEqual( len( tool.listSnapshotInfo() ), 1 )
+
+        info = tool.listSnapshotInfo()[ 0 ]
+
+        self.assertEqual( info[ 'id' ], 'default' )
+        self.assertEqual( info[ 'title' ], 'default' )
 
 
 _DEFAULT_STEP_REGISTRIES_EXPORT_XML = """\




More information about the CMF-checkins mailing list