[Zope3-checkins] CVS: Zope3/src/zope/app/container/browser/ftests - test_contents.py:1.2

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Mar 18 22:17:45 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/container/browser/ftests
In directory cvs.zope.org:/tmp/cvs-serv2298/src/zope/app/container/browser/ftests

Modified Files:
	test_contents.py 
Log Message:


I renamed the file factory from 'File' --> 'zope.app.content.File', which
required some functional tests to be updated.




=== Zope3/src/zope/app/container/browser/ftests/test_contents.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/container/browser/ftests/test_contents.py:1.1	Sat Mar 13 21:17:02 2004
+++ Zope3/src/zope/app/container/browser/ftests/test_contents.py	Thu Mar 18 22:17:14 2004
@@ -36,7 +36,7 @@
         self.assert_('foo' not in root)
         response = self.publish('/@@contents.html',
                                 basic='mgr:mgrpw',
-                                form={'type_name': u'File'})
+                                form={'type_name': u'zope.app.content.File'})
         body = ' '.join(response.getBody().split())
         self.assert_(body.find('type="hidden" name="type_name"') >= 0)
         self.assert_(body.find('input name="new_value"') >= 0)
@@ -47,7 +47,7 @@
 
         response = self.publish('/@@contents.html',
                                 basic='mgr:mgrpw',
-                                form={'type_name': u'File',
+                                form={'type_name': u'zope.app.content.File',
                                       'new_value': 'foo'})
         self.assertEqual(response.getStatus(), 302)
         self.assertEqual(response.getHeader('Location'),




More information about the Zope3-Checkins mailing list