def testFull(self): self._testEqual(toXML('parent', {'a':'c'}, [('c',), ('c', {}, [], 'b')], 'b'), '<parent a="c">b<c /><c>b</c></parent>')
def testSimpleWithChilds(self): self._testEqual(toXML('parent', childs=[('child1',), ('child2',)]), '<parent><child1 /><child2 /></parent>')
def testSimpleWithAttrs(self): self._testEqual(toXML('elem', {'attr1': 'val', 'attr2': 'val'}), '<elem attr1="val" attr2="val" />')
def testSimpleWithBody(self): self._testEqual(toXML('elem', body="body"), '<elem>body</elem>')
def testSimple(self): self._testEqual(toXML('elem'), '<elem />')