mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-30 11:09:56 +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'
|
||||
name = 'publish-options'
|
||||
plugin_attrib = 'publish_options'
|
||||
interfaces = set(('publish_options'))
|
||||
interfaces = set(('publish_options',))
|
||||
is_extension = True
|
||||
plugin_attrib_map = {}
|
||||
plugin_tag_map = {}
|
||||
|
||||
|
|
|
@ -213,6 +213,9 @@ class TestPubsubStanzas(SleekTest):
|
|||
item2['payload'] = payload2
|
||||
iq['pubsub']['publish'].append(item)
|
||||
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, """
|
||||
<iq id="0">
|
||||
|
@ -231,6 +234,13 @@ class TestPubsubStanzas(SleekTest):
|
|||
</thinger2>
|
||||
</item>
|
||||
</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>
|
||||
</iq>""")
|
||||
|
||||
|
|
Loading…
Reference in a new issue