summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2011-02-07 10:18:15 -0500
committerLance Stout <lancestout@gmail.com>2011-02-07 10:18:15 -0500
commitaa1996eba60229f5c843f8d4aae8421a80b41981 (patch)
treee59e7c4b508b5a96dd4fe41e093e48165c346d5b
parent683f717cf756b6487c9dcdfcc0aee4923da7f7c9 (diff)
downloadslixmpp-aa1996eba60229f5c843f8d4aae8421a80b41981.tar.gz
slixmpp-aa1996eba60229f5c843f8d4aae8421a80b41981.tar.bz2
slixmpp-aa1996eba60229f5c843f8d4aae8421a80b41981.tar.xz
slixmpp-aa1996eba60229f5c843f8d4aae8421a80b41981.zip
Fixed failing tests from new XEP-0009 plugin
-rw-r--r--sleekxmpp/plugins/xep_0009/binding.py2
-rw-r--r--tests/test_stanza_xep_0009.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/sleekxmpp/plugins/xep_0009/binding.py b/sleekxmpp/plugins/xep_0009/binding.py
index 61ef1469..700beb2f 100644
--- a/sleekxmpp/plugins/xep_0009/binding.py
+++ b/sleekxmpp/plugins/xep_0009/binding.py
@@ -37,7 +37,7 @@ def xml2fault(params):
def py2xml(*args):
params = ET.Element("{%s}params" % _namespace)
for x in args:
- param = ET.Element("param")
+ param = ET.Element("{%s}param" % _namespace)
param.append(_py2xml(x))
params.append(param) #<params><param>...
return params
diff --git a/tests/test_stanza_xep_0009.py b/tests/test_stanza_xep_0009.py
index f6ab7ed0..6186dd90 100644
--- a/tests/test_stanza_xep_0009.py
+++ b/tests/test_stanza_xep_0009.py
@@ -6,9 +6,9 @@
See the file LICENSE for copying permission.
"""
-from sleekxmpp.plugins.old_0009 import py2xml
from sleekxmpp.plugins.xep_0009.stanza.RPC import RPCQuery, MethodCall, \
MethodResponse
+from sleekxmpp.plugins.xep_0009.binding import py2xml
from sleekxmpp.stanza.iq import Iq
from sleekxmpp.test.sleektest import SleekTest
from sleekxmpp.xmlstream.stanzabase import register_stanza_plugin
@@ -52,4 +52,4 @@ class TestJabberRPC(SleekTest):
""", use_values=False)
suite = unittest.TestLoader().loadTestsFromTestCase(TestJabberRPC)
- \ No newline at end of file
+