[Zope3-checkins] CVS: Products3/z3checkins/ftests - test_z3checkins.py:1.4

Gintautas Miliauskas gintas at pov.lt
Tue Jan 13 12:09:25 EST 2004


Update of /cvs-repository/Products3/z3checkins/ftests
In directory cvs.zope.org:/tmp/cvs-serv24299/ftests

Modified Files:
	test_z3checkins.py 
Log Message:
- Updated a number of places that had been broken by geddons.
- Properties are contained in Fields rather than in metadata.
- Made use of preconditions and other nice features.
- Uncommented a few assertions that seemed to apply.


=== Products3/z3checkins/ftests/test_z3checkins.py 1.3 => 1.4 ===
--- Products3/z3checkins/ftests/test_z3checkins.py:1.3	Wed Sep 17 05:19:30 2003
+++ Products3/z3checkins/ftests/test_z3checkins.py	Tue Jan 13 12:08:55 2004
@@ -24,15 +24,20 @@
         BrowserTestCase.setUp(self)
         response = self.publish('/+/action.html',
                                 basic='mgr:mgrpw',
-                                form={'type_name': u'Folder', 'id': u'z3c'})
+                                form={'type_name': u'CheckinFolder', 'id': u'z3c'})
         self.assertEqual(response.getStatus(), 302)
         response = self.publish(
-            '/z3c/@@objectMarker.html',
+            '/+/CheckinFolder=z3c',
             basic='mgr:mgrpw',
-            form={'ADD': 'Add',
-                  'add_zopeproducts.z3checkins.interfaces.ICheckinsFolder': 'on'})
-        self.assertEqual(response.getStatus(), 200)
-
+            form={'field.description': u'Some description',
+                  'field.archive_url': u'http://void',
+                  'field.icons': u'icon\nanother one',
+                  'UPDATE_SUBMIT': 'Add'})
+        self.assertEqual(response.getStatus(), 302)
+        z3c = self.getRootFolder()['z3c']
+        self.assertEqual(z3c.description, u'Some description')
+        self.assertEqual(z3c.archive_url, u'http://void')
+        self.assertEqual(z3c.icons, u'icon\nanother one')
 
     def test_empty(self):
         for view in self.container_views:




More information about the Zope3-Checkins mailing list