mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-30 19:19:55 +00:00
fixed test further... but now I have an out of order problem
This commit is contained in:
parent
4699bdff60
commit
b70565720f
2 changed files with 12 additions and 1 deletions
|
@ -247,7 +247,8 @@ class PublishOptions(ElementBase):
|
||||||
namespace = 'http://jabber.org/protocol/pubsub'
|
namespace = 'http://jabber.org/protocol/pubsub'
|
||||||
name = 'publish-options'
|
name = 'publish-options'
|
||||||
plugin_attrib = 'publish_options'
|
plugin_attrib = 'publish_options'
|
||||||
interfaces = set(('publish_options'))
|
interfaces = set(('publish_options',))
|
||||||
|
is_extension = True
|
||||||
plugin_attrib_map = {}
|
plugin_attrib_map = {}
|
||||||
plugin_tag_map = {}
|
plugin_tag_map = {}
|
||||||
|
|
||||||
|
|
|
@ -213,6 +213,9 @@ class TestPubsubStanzas(SleekTest):
|
||||||
item2['payload'] = payload2
|
item2['payload'] = payload2
|
||||||
iq['pubsub']['publish'].append(item)
|
iq['pubsub']['publish'].append(item)
|
||||||
iq['pubsub']['publish'].append(item2)
|
iq['pubsub']['publish'].append(item2)
|
||||||
|
form = xep_0004.Form()
|
||||||
|
form.addField('pubsub#description', ftype='text-single', value='this thing is awesome')
|
||||||
|
iq['pubsub']['publish_options'] = form
|
||||||
|
|
||||||
self.check(iq, """
|
self.check(iq, """
|
||||||
<iq id="0">
|
<iq id="0">
|
||||||
|
@ -231,6 +234,13 @@ class TestPubsubStanzas(SleekTest):
|
||||||
</thinger2>
|
</thinger2>
|
||||||
</item>
|
</item>
|
||||||
</publish>
|
</publish>
|
||||||
|
<publish-options>
|
||||||
|
<x xmlns="jabber:x:data" type="submit">
|
||||||
|
<field var="pubsub#description">
|
||||||
|
<value>this thing is awesome</value>
|
||||||
|
</field>
|
||||||
|
</x>
|
||||||
|
</publish-options>
|
||||||
</pubsub>
|
</pubsub>
|
||||||
</iq>""")
|
</iq>""")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue