summaryrefslogtreecommitdiffstats
path: root/test/test-ussd
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-ussd
parentb24439ed7b21bafa8d8226d43cec92ecdcb79cc8 (diff)
downloadofono-ba6db3af42efe2bcd85df536d1290487f9243d25.tar.bz2
test: Update to the new Manager api
Diffstat (limited to 'test/test-ussd')
-rwxr-xr-xtest/test-ussd8
1 files changed, 2 insertions, 6 deletions
diff --git a/test/test-ussd b/test/test-ussd
index 3b553d05..6e24de8e 100755
--- a/test/test-ussd
+++ b/test/test-ussd
@@ -30,12 +30,8 @@ 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 Modems property %s" % e
-
- ss = dbus.Interface(bus.get_object('org.ofono', modems[0]),
+ modems = manager.GetModems()
+ ss = dbus.Interface(bus.get_object('org.ofono', modems[0][0]),
'org.ofono.SupplementaryServices')
props = ss.GetProperties()