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/test-stk-menu | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'test/test-stk-menu') diff --git a/test/test-stk-menu b/test/test-stk-menu index 74d762d1..916a527a 100755 --- a/test/test-stk-menu +++ b/test/test-stk-menu @@ -145,14 +145,9 @@ if __name__ == '__main__': 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: if "org.ofono.SimToolkit" not in properties["Interfaces"]: continue -- cgit v1.2.3