From ba6db3af42efe2bcd85df536d1290487f9243d25 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Thu, 9 Sep 2010 14:37:37 -0500 Subject: test: Update to the new Manager api --- test/list-contexts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'test/list-contexts') 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"]: -- cgit v1.2.3