summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Likins <alikins@redhat.com>2007-09-21 16:25:37 -0400
committerAdrian Likins <alikins@redhat.com>2007-09-21 16:25:37 -0400
commit834683463c0212f6c27bda4a959512a2448ed591 (patch)
treea1756f5b61ae8bf7139c1508c596b39b72b7726b
parentd533633378be3d09376fd8b44b385e73e621ea52 (diff)
downloadfunc-834683463c0212f6c27bda4a959512a2448ed591.tar.gz
func-834683463c0212f6c27bda4a959512a2448ed591.tar.xz
func-834683463c0212f6c27bda4a959512a2448ed591.zip
update to new calling conventions
-rw-r--r--client/test_func.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/client/test_func.py b/client/test_func.py
index 281fb6d..4869636 100644
--- a/client/test_func.py
+++ b/client/test_func.py
@@ -12,11 +12,11 @@ TEST_SERVICES = True
s = xmlrpclib.ServerProxy("http://127.0.0.1:51234")
# here's the basic test...
-print s.test_add(1, 2)
+print s.test.test_add(1, 2)
# here's the service module testing
if TEST_SERVICES:
- print s.service_restart("httpd")
+ print s.service.service_restart("httpd")
# this is so I can remember how the virt module works
if TEST_VIRT:
@@ -25,14 +25,14 @@ if TEST_VIRT:
#s.virt_install("mdehaan.rdu.redhat.com","profileX")
# wait ...
- vms = s.virt_list_vms()
+ vms = s.virt.virt_list_vms()
# example of stopping all stopped virtual machines
print "list of virtual instances = %s" % vms
for vm in vms:
- status = s.virt_status(vm)
+ status = s.virt.virt_status(vm)
print status
if status == "shutdown":
- s.virt_start(vm)
+ s.virt.virt_start(vm)
# add more tests here