summaryrefslogtreecommitdiffstats
path: root/test/list-operators
diff options
context:
space:
mode:
Diffstat (limited to 'test/list-operators')
-rwxr-xr-xtest/list-operators9
1 files changed, 2 insertions, 7 deletions
diff --git a/test/list-operators b/test/list-operators
index c29ab028..be00c5ba 100755
--- a/test/list-operators
+++ b/test/list-operators
@@ -8,14 +8,9 @@ bus = dbus.SystemBus()
manager = dbus.Interface(bus.get_object('org.ofono', '/'),
'org.ofono.Manager')
-properties = manager.GetProperties()
-
-for path in properties["Modems"]:
- modem = dbus.Interface(bus.get_object('org.ofono', path),
- 'org.ofono.Modem')
-
- properties = modem.GetProperties()
+modems = manager.GetModems()
+for path, properties in modems:
print "[ %s ]" % (path)
if "org.ofono.NetworkRegistration" not in properties["Interfaces"]: