[Zope3-checkins] SVN: Zope3/branches/3.2/src/zope/app/server/tests/test_mkzopeinstance.py Fixed some bad tests.

Jim Fulton jim at zope.com
Fri Dec 16 17:47:41 EST 2005


Log message for revision 40838:
  Fixed some bad tests.
  

Changed:
  U   Zope3/branches/3.2/src/zope/app/server/tests/test_mkzopeinstance.py

-=-
Modified: Zope3/branches/3.2/src/zope/app/server/tests/test_mkzopeinstance.py
===================================================================
--- Zope3/branches/3.2/src/zope/app/server/tests/test_mkzopeinstance.py	2005-12-16 22:46:54 UTC (rev 40837)
+++ Zope3/branches/3.2/src/zope/app/server/tests/test_mkzopeinstance.py	2005-12-16 22:47:40 UTC (rev 40838)
@@ -189,7 +189,6 @@
         self.failUnless(app.all_input_consumed())
 
     def test_zserver_support(self):
-
         # test the zserver option.  We should get zserver versions of
         # runzope, zopectl, debugzope and zope.conf.  Any of these
         # that we provide in put skeleton should be overritten.
@@ -203,15 +202,17 @@
         options = self.createOptions()
         options.destination = self.instance
         options.interactive = False
+        options.zserver = True
         app = ControlledInputApplication(options, [])
         self.assertEqual(app.process(), 0)
-
-        self.assert_('from zope.app.server.main import main' in
-                     open(os.path.join(self.instance, 'bin', 'runzope'))
-                     )
-        self.assert_('from zope.app.server.main import debug' in
-                     open(os.path.join(self.instance, 'bin', 'debugzope'))
-                     )
+        self.assert_(
+            'from zope.app.server.main import main' in
+            open(os.path.join(self.instance, 'bin', 'runzope')).read()
+            )
+        self.assert_(
+            'from zope.app.server.main import debug' in
+            open(os.path.join(self.instance, 'bin', 'debugzope')).read()
+            )
         self.assert_(os.path.exists(
             os.path.join(self.instance, 'etc', 'zope.conf')
             ))
@@ -378,6 +379,7 @@
     version = "[test-version]"
     program = "[test-program]"
     add_package_includes = False
+    zserver = False
 
 
 def test_suite():



More information about the Zope3-Checkins mailing list