summaryrefslogtreecommitdiffstats
path: root/test/test-call-forwarding
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-call-forwarding
parentb24439ed7b21bafa8d8226d43cec92ecdcb79cc8 (diff)
downloadofono-ba6db3af42efe2bcd85df536d1290487f9243d25.tar.bz2
test: Update to the new Manager api
Diffstat (limited to 'test/test-call-forwarding')
-rwxr-xr-xtest/test-call-forwarding7
1 files changed, 2 insertions, 5 deletions
diff --git a/test/test-call-forwarding b/test/test-call-forwarding
index f4f30a28..85aca230 100755
--- a/test/test-call-forwarding
+++ b/test/test-call-forwarding
@@ -25,12 +25,9 @@ if __name__ == "__main__":
manager = dbus.Interface(bus.get_object('org.ofono', '/'),
'org.ofono.Manager')
- try:
- modems = manager.GetProperties()['Modems']
- except dbus.DBusException, e:
- print "Unable to get the modem list %s" % e
+ modems = manager.GetModems()
- cf = dbus.Interface(bus.get_object('org.ofono', modems[0]),
+ cf = dbus.Interface(bus.get_object('org.ofono', modems[0][0]),
'org.ofono.CallForwarding')
cf.connect_to_signal("PropertyChanged", property_changed)