From f4ecf0bac4089771a20ea6117f0a505c0b0b6e37 Mon Sep 17 00:00:00 2001 From: fritzy Date: Sun, 22 Aug 2010 06:08:48 +0000 Subject: [PATCH] fixed a but in stanza_pubsub --- sleekxmpp/plugins/stanza_pubsub.py | 2 +- 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 01aac09..858e928 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 cddfd12..38fc29e 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(""" @@ -91,7 +91,7 @@ class TestPubsubStanzas(SleekTest): self.checkIq(iq, """ - +