diff options
-rw-r--r-- | sleekxmpp/plugins/stanza_pubsub.py | 2 | ||||
-rw-r--r-- | tests/test_pubsubstanzas.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sleekxmpp/plugins/stanza_pubsub.py b/sleekxmpp/plugins/stanza_pubsub.py index 01aac095..858e9281 100644 --- a/sleekxmpp/plugins/stanza_pubsub.py +++ b/sleekxmpp/plugins/stanza_pubsub.py @@ -170,7 +170,7 @@ class Items(ElementBase): namespace = 'http://jabber.org/protocol/pubsub' name = 'items' plugin_attrib = 'items' - interfaces = set(tuple()) + interfaces = set(('node',)) plugin_attrib_map = {} plugin_tag_map = {} subitem = (Item,) diff --git a/tests/test_pubsubstanzas.py b/tests/test_pubsubstanzas.py index cddfd12b..38fc29e5 100644 --- a/tests/test_pubsubstanzas.py +++ b/tests/test_pubsubstanzas.py @@ -69,7 +69,7 @@ class TestPubsubStanzas(SleekTest): def testItems(self): "Testing iq/pubsub/items stanzas" iq = self.Iq() - iq['pubsub']['items'] + iq['pubsub']['items']['node'] = 'crap' payload = ET.fromstring(""" <thinger xmlns="http://andyet.net/protocol/thinger" x="1" y='2'> <child1 /> @@ -91,7 +91,7 @@ class TestPubsubStanzas(SleekTest): self.checkIq(iq, """ <iq id="0"> <pubsub xmlns="http://jabber.org/protocol/pubsub"> - <items> + <items node="crap"> <item id="asdf"> <thinger xmlns="http://andyet.net/protocol/thinger" y="2" x="1"> <child1 /> |