[z3-checkins] r14583 - z3/Five/branch/philikon-testing/browser/tests
philikon at codespeak.net
philikon at codespeak.net
Tue Jul 12 22:51:32 CEST 2005
Author: philikon
Date: Tue Jul 12 22:51:27 2005
New Revision: 14583
Modified:
z3/Five/branch/philikon-testing/browser/tests/pages.txt
z3/Five/branch/philikon-testing/browser/tests/pages_ftest.txt
z3/Five/branch/philikon-testing/browser/tests/test_pages.py
Log:
atomify tests
Modified: z3/Five/branch/philikon-testing/browser/tests/pages.txt
==============================================================================
--- z3/Five/branch/philikon-testing/browser/tests/pages.txt (original)
+++ z3/Five/branch/philikon-testing/browser/tests/pages.txt Tue Jul 12 22:51:27 2005
@@ -5,6 +5,7 @@
>>> import Products.Five.browser.tests
>>> from Products.Five import zcml
+ >>> zcml.load_config("configure.zcml", Products.Five)
>>> zcml.load_config('pages.zcml', package=Products.Five.browser.tests)
Let's add a test object that we view most of the pages off of:
@@ -264,3 +265,10 @@
>>> print view()
<html><body><img alt=""
src="http://nohost/test_folder_1_/testoid/++resource++pattern.png" /></body></html>
+
+
+Clean up
+--------
+
+ >>> from zope.app.tests.placelesssetup import tearDown
+ >>> tearDown()
Modified: z3/Five/branch/philikon-testing/browser/tests/pages_ftest.txt
==============================================================================
--- z3/Five/branch/philikon-testing/browser/tests/pages_ftest.txt (original)
+++ z3/Five/branch/philikon-testing/browser/tests/pages_ftest.txt Tue Jul 12 22:51:27 2005
@@ -6,6 +6,7 @@
>>> import Products.Five.browser.tests
>>> from Products.Five import zcml
+ >>> zcml.load_config("configure.zcml", Products.Five)
>>> zcml.load_config('pages.zcml', package=Products.Five.browser.tests)
Let's also add one of our stub objects to play with:
@@ -119,3 +120,10 @@
... response = self.publish('/test_folder_1_/testoid/%s' % view_name)
... status = response.getStatus()
... self.failUnless(status == 200, (status, 200, view_name))
+
+
+Clean up
+--------
+
+ >>> from zope.app.tests.placelesssetup import tearDown
+ >>> tearDown()
Modified: z3/Five/branch/philikon-testing/browser/tests/test_pages.py
==============================================================================
--- z3/Five/branch/philikon-testing/browser/tests/test_pages.py (original)
+++ z3/Five/branch/philikon-testing/browser/tests/test_pages.py Tue Jul 12 22:51:27 2005
@@ -23,7 +23,6 @@
import unittest
from Testing.ZopeTestCase import installProduct, ZopeDocFileSuite
from Testing.ZopeTestCase import FunctionalDocFileSuite
- installProduct('Five')
installProduct('PythonScripts') # for Five.testing.restricted
return unittest.TestSuite((
ZopeDocFileSuite('pages.txt',
More information about the z3-checkins
mailing list