diff options
author | Dan Williams <dcbw@redhat.com> | 2009-06-18 13:28:09 -0400 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2009-06-18 13:28:09 -0400 |
commit | 0555cc1824aabbdda77cf1440c4e7be4ef8cc69e (patch) | |
tree | 0196b968985b0fd179ba31814bbaf769b9614c4f /test/mm-test.py | |
parent | 440cd967e25f931dd4ed8684e27a72791e4d40f0 (diff) |
test: fix up test program for current API
Diffstat (limited to 'test/mm-test.py')
-rwxr-xr-x | test/mm-test.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/mm-test.py b/test/mm-test.py index f4eacfeb..85f297b5 100755 --- a/test/mm-test.py +++ b/test/mm-test.py @@ -84,7 +84,7 @@ for m in modems: print "Invalid modem type: %d" % type print "Driver: '%s'" % (props_iface.Get(MM_DBUS_INTERFACE_MODEM, 'Driver')) - print "Data device: '%s'" % (props_iface.Get(MM_DBUS_INTERFACE_MODEM, 'DataDevice')) + print "Data device: '%s'" % (props_iface.Get(MM_DBUS_INTERFACE_MODEM, 'Device')) # Modem interface modem = dbus.Interface(proxy, dbus_interface=MM_DBUS_INTERFACE_MODEM) @@ -118,7 +118,10 @@ for m in modems: else: status = "(Unknown)" - print "%s: %s" % (r['operator-long'], status) + if len(r['operator-long']): + print "%s: %s" % (r['operator-long'], status) + else: + print "%s: %s" % (r['operator-short'], status) print |