summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sleekxmpp/xmlstream/stanzabase.py1
-rw-r--r--tests/pubsub_stanzas.py3
2 files changed, 4 insertions, 0 deletions
diff --git a/sleekxmpp/xmlstream/stanzabase.py b/sleekxmpp/xmlstream/stanzabase.py
index 77244fb7..d4c1118f 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 2fd6df43..d768a3df 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))