summaryrefslogtreecommitdiff
path: root/tests/twisted/test-location.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/twisted/test-location.py')
-rw-r--r--tests/twisted/test-location.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/twisted/test-location.py b/tests/twisted/test-location.py
index 71433ec04..cb1817321 100644
--- a/tests/twisted/test-location.py
+++ b/tests/twisted/test-location.py
@@ -275,8 +275,8 @@ def test(q, bus, conn, stream):
# Hey, while we weren't looking Bob moved abroad!
result = make_result_iq(stream, e.stanza)
result['from'] = 'bob@foo.com'
- query = result.firstChildElement()
- result.addChild(
+ pubsub_node = result.firstChildElement()
+ pubsub_node.addChild(
elem('items', node=ns.GEOLOC)(
elem('item', id='12345')(
elem(ns.GEOLOC, 'geoloc')(