mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-24 03:00:15 +00:00
fixed a but in stanza_pubsub
This commit is contained in:
parent
345656926e
commit
f4ecf0bac4
2 changed files with 3 additions and 3 deletions
|
@ -170,7 +170,7 @@ class Items(ElementBase):
|
||||||
namespace = 'http://jabber.org/protocol/pubsub'
|
namespace = 'http://jabber.org/protocol/pubsub'
|
||||||
name = 'items'
|
name = 'items'
|
||||||
plugin_attrib = 'items'
|
plugin_attrib = 'items'
|
||||||
interfaces = set(tuple())
|
interfaces = set(('node',))
|
||||||
plugin_attrib_map = {}
|
plugin_attrib_map = {}
|
||||||
plugin_tag_map = {}
|
plugin_tag_map = {}
|
||||||
subitem = (Item,)
|
subitem = (Item,)
|
||||||
|
|
|
@ -69,7 +69,7 @@ class TestPubsubStanzas(SleekTest):
|
||||||
def testItems(self):
|
def testItems(self):
|
||||||
"Testing iq/pubsub/items stanzas"
|
"Testing iq/pubsub/items stanzas"
|
||||||
iq = self.Iq()
|
iq = self.Iq()
|
||||||
iq['pubsub']['items']
|
iq['pubsub']['items']['node'] = 'crap'
|
||||||
payload = ET.fromstring("""
|
payload = ET.fromstring("""
|
||||||
<thinger xmlns="http://andyet.net/protocol/thinger" x="1" y='2'>
|
<thinger xmlns="http://andyet.net/protocol/thinger" x="1" y='2'>
|
||||||
<child1 />
|
<child1 />
|
||||||
|
@ -91,7 +91,7 @@ class TestPubsubStanzas(SleekTest):
|
||||||
self.checkIq(iq, """
|
self.checkIq(iq, """
|
||||||
<iq id="0">
|
<iq id="0">
|
||||||
<pubsub xmlns="http://jabber.org/protocol/pubsub">
|
<pubsub xmlns="http://jabber.org/protocol/pubsub">
|
||||||
<items>
|
<items node="crap">
|
||||||
<item id="asdf">
|
<item id="asdf">
|
||||||
<thinger xmlns="http://andyet.net/protocol/thinger" y="2" x="1">
|
<thinger xmlns="http://andyet.net/protocol/thinger" y="2" x="1">
|
||||||
<child1 />
|
<child1 />
|
||||||
|
|
Loading…
Reference in a new issue