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