diff --git a/sleekxmpp/xmlstream/stanzabase.py b/sleekxmpp/xmlstream/stanzabase.py index 77244fb..d4c1118 100644 --- a/sleekxmpp/xmlstream/stanzabase.py +++ b/sleekxmpp/xmlstream/stanzabase.py @@ -77,6 +77,7 @@ class ElementBase(object): out += [x for x in self.plugins] if self.iterables: out.append('substanzas') + return tuple(out) def find(self, item): return self.iterables.find(item) diff --git a/tests/pubsub_stanzas.py b/tests/pubsub_stanzas.py index 2fd6df4..d768a3d 100644 --- a/tests/pubsub_stanzas.py +++ b/tests/pubsub_stanzas.py @@ -16,6 +16,9 @@ def testAffiliations(): values = iq2.getValues() print(values) iq3.setValues(values) + print("-"*8) + print(iq3.keys()) + print(iq3) print(str(iq) == str(iq2) == str(iq3))