test: Update to the new Manager api

This commit is contained in:
Denis Kenzior
2010-09-09 14:37:37 -05:00
parent b24439ed7b
commit ba6db3af42
48 changed files with 121 additions and 213 deletions

View File

@@ -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:
if "org.ofono.ConnectionManager" not in properties["Interfaces"]:
continue