summaryrefslogtreecommitdiffstats
path: root/test/test-modem
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-09-09 14:37:37 -0500
committerDenis Kenzior <denkenz@gmail.com>2010-09-09 14:38:14 -0500
commitba6db3af42efe2bcd85df536d1290487f9243d25 (patch)
treeea8b18188afaebe8c53a0b8811ef84886ba2abec /test/test-modem
parentb24439ed7b21bafa8d8226d43cec92ecdcb79cc8 (diff)
downloadofono-ba6db3af42efe2bcd85df536d1290487f9243d25.tar.bz2
test: Update to the new Manager api
Diffstat (limited to 'test/test-modem')
-rwxr-xr-xtest/test-modem6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/test-modem b/test/test-modem
index df69eb1d..5859ae31 100755
--- a/test/test-modem
+++ b/test/test-modem
@@ -16,10 +16,8 @@ if __name__ == "__main__":
manager = dbus.Interface(bus.get_object('org.ofono', '/'),
'org.ofono.Manager')
- modems = manager.GetProperties()['Modems']
- print modems
-
- modem = dbus.Interface(bus.get_object('org.ofono', modems[0]),
+ modems = manager.GetModems()
+ modem = dbus.Interface(bus.get_object('org.ofono', modems[0][0]),
'org.ofono.Modem')
modem.connect_to_signal("PropertyChanged", property_changed)