[Zope-Checkins] SVN: Zope/branches/slinkp-collector_596/lib/python/Products/PageTemplates/tests/testZopePageTemplate.py removed call to Zope.startup()

Paul Winkler pw_lists at slinkp.com
Fri May 28 16:07:54 EDT 2004


Log message for revision 25099:
removed call to Zope.startup()




-=-
Modified: Zope/branches/slinkp-collector_596/lib/python/Products/PageTemplates/tests/testZopePageTemplate.py
===================================================================
--- Zope/branches/slinkp-collector_596/lib/python/Products/PageTemplates/tests/testZopePageTemplate.py	2004-05-28 19:49:45 UTC (rev 25098)
+++ Zope/branches/slinkp-collector_596/lib/python/Products/PageTemplates/tests/testZopePageTemplate.py	2004-05-28 20:07:53 UTC (rev 25099)
@@ -8,21 +8,9 @@
 
 
 import unittest
-
+import Zope
 from Testing.makerequest import makerequest
 
-class DummyFileUpload:
-    def __init__(self, data='', filename='', content_type=''):
-        self.data = data
-        self.filename = filename
-        self.headers = {'content_type': content_type}
-
-    def read(self):
-        return self.data
-    
-import Zope
-Zope.startup()
-
 class ZPTRegressions(unittest.TestCase):
 
     def setUp(self):
@@ -67,7 +55,15 @@
         pt = self.app.pt1
         self.assertEqual(pt.document_src(), self.text)
         
-        
+ class DummyFileUpload:
+    def __init__(self, data='', filename='', content_type=''):
+        self.data = data
+        self.filename = filename
+        self.headers = {'content_type': content_type}
+
+    def read(self):
+
+       
 def test_suite():
     return unittest.makeSuite(ZPTRegressions)
 




More information about the Zope-Checkins mailing list