

def test_render_multi_levels(self):
    author = self.get_author()
    actual = e.fromstring(author.render('xml'))
    self.assertEqual(actual.find('name').text, 'Terry Pratchett')
    self.assertEqual(actual.find('.//shorts').attrib['count'], '2')

dataset/ETHPy150Open bigjason/datatree/datatree/tests/test_xmlrenderer.py test_XmlRenderer.test_render_multi_levels/original