diff options
author | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-09-21 18:03:43 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-09-21 18:03:43 -0400 |
commit | 74b4897547980bf8512be7806d1ee8f5ef28aaf8 (patch) | |
tree | 7b56845b4ea211978469e9a98a260c45618a1e9a /client/test_func.py | |
parent | 51c125269630afa95cb00a9850c32bee16108753 (diff) | |
download | third_party-func-74b4897547980bf8512be7806d1ee8f5ef28aaf8.tar.gz third_party-func-74b4897547980bf8512be7806d1ee8f5ef28aaf8.tar.xz third_party-func-74b4897547980bf8512be7806d1ee8f5ef28aaf8.zip |
Process module. Accepts flags to PS, returns nicely formatted tabular output.
Diffstat (limited to 'client/test_func.py')
-rw-r--r-- | client/test_func.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/test_func.py b/client/test_func.py index 57cf5d7..866af36 100644 --- a/client/test_func.py +++ b/client/test_func.py @@ -5,6 +5,7 @@ import xmlrpclib +TEST_PROCESS = True TEST_VIRT = False TEST_SERVICES = True TEST_HARDWARE = True @@ -15,6 +16,9 @@ s = xmlrpclib.ServerProxy("http://127.0.0.1:51234") # here's the basic test... print s.test.add(1, 2) +if TEST_PROCESS: + print s.process.info() + # here's the service module testing if TEST_SERVICES: print s.service.restart("httpd") |