summaryrefslogtreecommitdiff
path: root/tests/test_pubsubstanzas.py
diff options
context:
space:
mode:
authorNathan Fritz <nathan@andyet.net>2010-05-26 11:37:01 -0700
committerNathan Fritz <nathan@andyet.net>2010-05-26 11:37:01 -0700
commitfa92bc866beea0476def1f6bf258b6f3bed4c56f (patch)
treef288ee74b5043a22a34cf97fc99be4ff30ac2015 /tests/test_pubsubstanzas.py
parentf4bc9d9722ea57b5f5d22efeb6bc65cb990e1053 (diff)
downloadslixmpp-fa92bc866beea0476def1f6bf258b6f3bed4c56f.tar.gz
slixmpp-fa92bc866beea0476def1f6bf258b6f3bed4c56f.tar.bz2
slixmpp-fa92bc866beea0476def1f6bf258b6f3bed4c56f.tar.xz
slixmpp-fa92bc866beea0476def1f6bf258b6f3bed4c56f.zip
fixed dns unicode problem
Diffstat (limited to 'tests/test_pubsubstanzas.py')
-rw-r--r--tests/test_pubsubstanzas.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_pubsubstanzas.py b/tests/test_pubsubstanzas.py
index 5353f907..55407c16 100644
--- a/tests/test_pubsubstanzas.py
+++ b/tests/test_pubsubstanzas.py
@@ -103,10 +103,11 @@ class testpubsubstanzas(unittest.TestCase):
iq = self.ps.Iq()
iq['pubsub_owner']['default']
iq['pubsub_owner']['default']['node'] = 'mynode'
+ iq['pubsub_owner']['default']['type'] = 'leaf'
form = xep_0004.Form()
form.addField('pubsub#title', ftype='text-single', value='This thing is awesome')
iq['pubsub_owner']['default']['config'] = form
- xmlstring = """<iq id="0"><pubsub xmlns="http://jabber.org/protocol/pubsub#owner"><default node="mynode"><x xmlns="jabber:x:data" type="form"><field var="pubsub#title" type="text-single"><value>This thing is awesome</value></field></x></default></pubsub></iq>"""
+ xmlstring = """<iq id="0"><pubsub xmlns="http://jabber.org/protocol/pubsub#owner"><default node="mynode" type="leaf"><x xmlns="jabber:x:data" type="form"><field var="pubsub#title" type="text-single"><value>This thing is awesome</value></field></x></default></pubsub></iq>"""
iq2 = self.ps.Iq(None, self.ps.ET.fromstring(xmlstring))
iq3 = self.ps.Iq()
values = iq2.getValues()