From 16839f2ca0d9a1cc1bde7727ce03851c0cf15ae6 Mon Sep 17 00:00:00 2001 From: Tim Kourt Date: Fri, 3 Jun 2016 16:13:44 -0700 Subject: [PATCH] autotests: Replace strings with constants --- autotests/utility/simpleAgent.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/autotests/utility/simpleAgent.py b/autotests/utility/simpleAgent.py index 66a21824..83d800f6 100755 --- a/autotests/utility/simpleAgent.py +++ b/autotests/utility/simpleAgent.py @@ -19,8 +19,8 @@ def defineAgentVars(): global manager, pathAgent bus = dbus.SystemBus() pathAgent = "/utility/agent/" + str(randrange(100)) - manager = dbus.Interface(bus.get_object('net.connman.iwd', "/"), - 'net.connman.iwd.AgentManager') + manager = dbus.Interface(bus.get_object(utility.IWD_SERVICE, "/"), + utility.IWD_AGENT_MANAGER_INTERFACE) def getManager(): return manager @@ -29,13 +29,13 @@ def getPathAgent(): return pathAgent class Agent(dbus.service.Object): - @dbus.service.method("net.connman.iwd.Agent", + @dbus.service.method(utility.IWD_AGENT_INTERFACE, in_signature='', out_signature='') def Release(self): logger.debug("Release") mainloop.quit() - @dbus.service.method("net.connman.iwd.Agent", + @dbus.service.method(utility.IWD_AGENT_INTERFACE, in_signature='o', out_signature='s') def RequestPassphrase(self, path):