tests/test-dispatch.py
changeset 14438 08bfec2ef031
parent 9031 3b76321aa0de
child 28404 06245740b408
equal deleted inserted replaced
14437:cbe13e6bdc34 14438:08bfec2ef031
     5     """Simple wrapper around dispatch.dispatch()
     5     """Simple wrapper around dispatch.dispatch()
     6 
     6 
     7     Prints command and result value, but does not handle quoting.
     7     Prints command and result value, but does not handle quoting.
     8     """
     8     """
     9     print "running: %s" % (cmd,)
     9     print "running: %s" % (cmd,)
    10     result = dispatch.dispatch(cmd.split())
    10     req = dispatch.request(cmd.split())
       
    11     result = dispatch.dispatch(req)
    11     print "result: %r" % (result,)
    12     print "result: %r" % (result,)
    12 
    13 
    13 
    14 
    14 testdispatch("init test1")
    15 testdispatch("init test1")
    15 os.chdir('test1')
    16 os.chdir('test1')