fixed test further... but now I have an out of order problem

This commit is contained in:
Nathan Fritz 2011-08-30 23:03:04 -07:00
parent 4699bdff60
commit b70565720f
2 changed files with 12 additions and 1 deletions

View file

@ -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 = {}

View file

@ -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>""")