[z3-checkins] r14586 - z3/Five/branch/philikon-testing/browser/tests

philikon at codespeak.net philikon at codespeak.net
Tue Jul 12 22:58:15 CEST 2005


Author: philikon
Date: Tue Jul 12 22:58:12 2005
New Revision: 14586

Modified:
   z3/Five/branch/philikon-testing/browser/tests/test_traversable.py
Log:
atomify test


Modified: z3/Five/branch/philikon-testing/browser/tests/test_traversable.py
==============================================================================
--- z3/Five/branch/philikon-testing/browser/tests/test_traversable.py	(original)
+++ z3/Five/branch/philikon-testing/browser/tests/test_traversable.py	Tue Jul 12 22:58:12 2005
@@ -23,6 +23,10 @@
     """
     Test the behaviour of Five-traversable classes.
 
+      >>> import Products.Five
+      >>> from Products.Five import zcml
+      >>> zcml.load_config("configure.zcml", Products.Five)
+
     ``SimpleContent`` is a traversable class by default.  Its fallback
     traverser should raise NotFound when traversal fails.  (Note: If
     we return None in __fallback_traverse__, this test passes but for
@@ -61,8 +65,6 @@
       ...     />
       ... 
       ... </configure>'''
-
-      >>> from Products.Five import zcml
       >>> zcml.load_string(configure_zcml)
 
       >>> from Products.Five.testing.fancycontent import manage_addFancyContent
@@ -89,15 +91,14 @@
       Fancy, fancy
 
 
-    Since we monkeyed with the class, we need to clean up now:
+    Clean up:
 
-      >>> from Products.Five.fiveconfigure import cleanUp
-      >>> cleanUp()
+      >>> from zope.app.tests.placelesssetup import tearDown
+      >>> tearDown()
     """
 
 def test_suite():
-    from Testing.ZopeTestCase import installProduct, FunctionalDocTestSuite
-    installProduct('Five')
+    from Testing.ZopeTestCase import FunctionalDocTestSuite
     return FunctionalDocTestSuite()
 
 if __name__ == '__main__':


More information about the z3-checkins mailing list