[Zope-Checkins] CVS: ZODB3/zdaemon/tests - testzdaemon.py:1.3
Guido van Rossum
guido@python.org
Wed, 13 Nov 2002 13:03:22 -0500
Update of /cvs-repository/ZODB3/zdaemon/tests
In directory cvs.zope.org:/tmp/cvs-serv16287
Modified Files:
testzdaemon.py
Log Message:
Test for the -h option.
=== ZODB3/zdaemon/tests/testzdaemon.py 1.2 => 1.3 ===
--- ZODB3/zdaemon/tests/testzdaemon.py:1.2 Wed Nov 13 10:30:10 2002
+++ ZODB3/zdaemon/tests/testzdaemon.py Wed Nov 13 13:03:22 2002
@@ -8,7 +8,7 @@
import unittest
from StringIO import StringIO
-from zdaemon.zdaemon import Daemonizer
+from zdaemon import zdaemon
class ZDaemonTests(unittest.TestCase):
@@ -58,7 +58,7 @@
def run(self, args):
if type(args) is type(""):
args = args.split()
- d = Daemonizer()
+ d = zdaemon.Daemonizer()
try:
d.main(["-s", self.zdsock] + args)
except SystemExit:
@@ -87,6 +87,10 @@
time.sleep(1)
self.run("-c exit")
self.expect = "Sent SIGTERM\nSent SIGTERM; will exit later\n"
+
+ def testHelp(self):
+ self.run("-h")
+ self.expect = zdaemon.__doc__
def test_suite():
suite = unittest.TestSuite()