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-call-forwarding | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'test/test-call-forwarding') 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) -- cgit v1.2.3