[z3-checkins] r14578 - z3/Five/branch/philikon-testing/browser/tests
philikon at codespeak.net
philikon at codespeak.net
Tue Jul 12 22:32:10 CEST 2005
Author: philikon
Date: Tue Jul 12 22:32:05 2005
New Revision: 14578
Modified:
z3/Five/branch/philikon-testing/browser/tests/adding.txt
z3/Five/branch/philikon-testing/browser/tests/test_adding.py
Log:
atomify adding test
Modified: z3/Five/branch/philikon-testing/browser/tests/adding.txt
==============================================================================
--- z3/Five/branch/philikon-testing/browser/tests/adding.txt (original)
+++ z3/Five/branch/philikon-testing/browser/tests/adding.txt Tue Jul 12 22:32:05 2005
@@ -7,11 +7,11 @@
First we need to import and setup some prerequisites:
- >>> from zope.app.container.interfaces import INameChooser
>>> from Products.Five.testing import manage_addFiveTraversableFolder
+ >>> from Products.Five.browser.adding import ObjectManagerNameChooser
>>> manage_addFiveTraversableFolder(self.folder, 'testoid', 'Testoid')
- >>> chooser = INameChooser(self.folder)
+ >>> chooser = ObjectManagerNameChooser(self.folder)
Now we can start. ``INameChooser`` defines a ``checkName()`` method
that checks whether a given name is valid in the container or not.
Modified: z3/Five/branch/philikon-testing/browser/tests/test_adding.py
==============================================================================
--- z3/Five/branch/philikon-testing/browser/tests/test_adding.py (original)
+++ z3/Five/branch/philikon-testing/browser/tests/test_adding.py Tue Jul 12 22:32:05 2005
@@ -20,8 +20,7 @@
execfile(os.path.join(sys.path[0], 'framework.py'))
def test_suite():
- from Testing.ZopeTestCase import installProduct, ZopeDocFileSuite
- installProduct('Five')
+ from Testing.ZopeTestCase import ZopeDocFileSuite
return ZopeDocFileSuite('adding.txt',
package="Products.Five.browser.tests")
More information about the z3-checkins
mailing list