diff options
author | Brian Beggs <macdiesel@gmail.com> | 2010-07-01 09:17:45 -0400 |
---|---|---|
committer | Brian Beggs <macdiesel@gmail.com> | 2010-07-01 09:17:45 -0400 |
commit | d763795b2cb01fd90b8d7661bfafdb80d84e13c8 (patch) | |
tree | a3338228fae061aebed3b6e69d231e22ec5351f2 /tests/test_pubsubstanzas.py | |
parent | fff54eaf2f069db22c2a0a3cf0e522d628e188b3 (diff) | |
parent | 1e3a6e1b5f06d307295be6b4ccaf75bf2a48399d (diff) | |
download | slixmpp-d763795b2cb01fd90b8d7661bfafdb80d84e13c8.tar.gz slixmpp-d763795b2cb01fd90b8d7661bfafdb80d84e13c8.tar.bz2 slixmpp-d763795b2cb01fd90b8d7661bfafdb80d84e13c8.tar.xz slixmpp-d763795b2cb01fd90b8d7661bfafdb80d84e13c8.zip |
Merge remote branch 'fritzy/master'
Conflicts:
sleekxmpp/__init__.py
sleekxmpp/basexmpp.py
sleekxmpp/stanza/error.py
Diffstat (limited to 'tests/test_pubsubstanzas.py')
-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() |