diff options
author | Thom Nichols <tmnichols@gmail.com> | 2010-07-01 17:50:45 -0400 |
---|---|---|
committer | Thom Nichols <tmnichols@gmail.com> | 2010-07-01 17:50:45 -0400 |
commit | 62da57a6c26a16024dd481b364e5d1021bc3dd3b (patch) | |
tree | 9b0bb5e2907fb4a2e8cc48f844a9fb5431ad4c09 /tests | |
parent | ba9633f8f7ef86c73dd02ad316e7963447a6239b (diff) | |
parent | f477ccf533a9b041e5f32b8b01e8381e05bcadf2 (diff) | |
download | slixmpp-62da57a6c26a16024dd481b364e5d1021bc3dd3b.tar.gz slixmpp-62da57a6c26a16024dd481b364e5d1021bc3dd3b.tar.bz2 slixmpp-62da57a6c26a16024dd481b364e5d1021bc3dd3b.tar.xz slixmpp-62da57a6c26a16024dd481b364e5d1021bc3dd3b.zip |
Merge branch 'master' of git://github.com/macdiesel/SleekXMPP into hacks
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_pubsubstanzas.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_pubsubstanzas.py b/tests/test_pubsubstanzas.py index dc41fc30..089ee180 100644 --- a/tests/test_pubsubstanzas.py +++ b/tests/test_pubsubstanzas.py @@ -118,10 +118,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() |