chiark / gitweb /
borrow some test naming conventions from disorder.unicode
authorRichard Kettlewell <rjk@greenend.org.uk>
Wed, 21 Nov 2007 10:44:34 +0000 (10:44 +0000)
committerRichard Kettlewell <rjk@greenend.org.uk>
Wed, 21 Nov 2007 10:44:34 +0000 (10:44 +0000)
tests/dtest.py
tests/nothing.py
tests/version.py

index 552542a..11b6e8b 100644 (file)
@@ -105,8 +105,8 @@ def stdtracks():
 def notracks():
     pass
 
-def start():
-    """start()
+def start_daemon():
+    """start_daemon()
 
 Start the daemon."""
     global daemon
@@ -119,8 +119,8 @@ Start the daemon."""
     disorder._configfile = "%s/config" % testroot
     disorder._userconf = False
 
-def stop():
-    """stop()
+def stop_daemon():
+    """stop_daemon()
 
 Stop the daemon if it has not stopped already"""
     global daemon
@@ -163,7 +163,7 @@ def run(module=None, report=True):
             failures += 1
             print e
     finally:
-        stop()
+        stop_daemon()
     if report:
         if failures:
             print " FAILED"
index aeb0308..f3bdeb9 100755 (executable)
@@ -22,9 +22,8 @@ import dtest,time
 
 def test():
     """Just start the server and then stop it a few seconds later"""
-    dtest.start()
+    dtest.start_daemon()
     time.sleep(2)
-    dtest.stop()
 
 if __name__ == '__main__':
     dtest.run()
index 6fd42df..dbb0df6 100755 (executable)
@@ -22,12 +22,11 @@ import dtest,time,disorder
 
 def test():
     """Ask the server its version number"""
-    dtest.start()
+    dtest.start_daemon()
     time.sleep(2)                       # give the daemon a chance to start up
     c = disorder.client()
     v = c.version()
     print "Server version: %s" % v
-    dtest.stop()
 
 if __name__ == '__main__':
     dtest.run()