test: fix up test program for current API

This commit is contained in:
Dan Williams
2009-06-18 13:28:09 -04:00
parent 440cd967e2
commit 0555cc1824

View File

@@ -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