Completed basic test coverage of xmlns http://jabber.org/protocol/pubsub stanzas

This commit is contained in:
Nathan Fritz
2010-01-13 09:04:05 -08:00
parent d14045f5a6
commit 6e1aa0690f
3 changed files with 160 additions and 84 deletions

View File

@@ -64,7 +64,8 @@ class ElementBase(object):
if not isinstance(item, ElementBase):
raise TypeError
self.xml.append(item.xml)
return self.iterables.append(item)
self.iterables.append(item)
return self
def pop(self, idx=0):
aff = self.iterables.pop(idx)
@@ -236,7 +237,7 @@ class ElementBase(object):
self.plugins[interface].setValues(attrib[interface])
return self
def append(self, xml):
def appendxml(self, xml):
self.xml.append(xml)
return self