test: fix up test program for current API
This commit is contained in:
@@ -84,7 +84,7 @@ for m in modems:
|
|||||||
print "Invalid modem type: %d" % type
|
print "Invalid modem type: %d" % type
|
||||||
|
|
||||||
print "Driver: '%s'" % (props_iface.Get(MM_DBUS_INTERFACE_MODEM, 'Driver'))
|
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 interface
|
||||||
modem = dbus.Interface(proxy, dbus_interface=MM_DBUS_INTERFACE_MODEM)
|
modem = dbus.Interface(proxy, dbus_interface=MM_DBUS_INTERFACE_MODEM)
|
||||||
@@ -118,7 +118,10 @@ for m in modems:
|
|||||||
else:
|
else:
|
||||||
status = "(Unknown)"
|
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
|
print
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user