summaryrefslogtreecommitdiffstats
path: root/test/list-contexts
diff options
context:
space:
mode:
Diffstat (limited to 'test/list-contexts')
-rwxr-xr-xtest/list-contexts9
1 files changed, 2 insertions, 7 deletions
diff --git a/test/list-contexts b/test/list-contexts
index 66a76c5c..68dae6a7 100755
--- a/test/list-contexts
+++ b/test/list-contexts
@@ -7,14 +7,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.ConnectionManager" not in properties["Interfaces"]: