From 0555cc1824aabbdda77cf1440c4e7be4ef8cc69e Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Thu, 18 Jun 2009 13:28:09 -0400 Subject: test: fix up test program for current API --- test/mm-test.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'test/mm-test.py') 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 -- cgit v1.2.3-70-g09d2