summaryrefslogtreecommitdiff
path: root/tests/twisted/roster/subscribe.py
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2013-09-20 14:43:37 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2013-09-23 16:11:47 +0100
commit6edf26eca064f10f790bfa925131a100c60f68e5 (patch)
treef09d4ac1f2781896c69da3dbeb92f83b3ff9bb88 /tests/twisted/roster/subscribe.py
parent65d38a3105b091cc32aa6227e90a68026b138bb4 (diff)
downloadtelepathy-haze-6edf26eca064f10f790bfa925131a100c60f68e5.tar.gz
Tests: replace GetSelfHandle calls with property-getting
sed expression: s/\.GetSelfHandle()/.Properties.Get(cs.CONN, "SelfHandle")/g adjusted by hand to add "import constants as cs" where needed. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69619 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Diffstat (limited to 'tests/twisted/roster/subscribe.py')
-rw-r--r--tests/twisted/roster/subscribe.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/twisted/roster/subscribe.py b/tests/twisted/roster/subscribe.py
index f6225de..102ab71 100644
--- a/tests/twisted/roster/subscribe.py
+++ b/tests/twisted/roster/subscribe.py
@@ -13,7 +13,7 @@ import constants as cs
import ns
def test(q, bus, conn, stream):
- self_handle = conn.GetSelfHandle()
+ self_handle = conn.Properties.Get(cs.CONN, "SelfHandle")
# Close all Group channels to get a clean slate, so we can rely on
# the NewChannels signal for the default group later