def test_render_complex_data(self):
        renderer = XMLRenderer()
        content = renderer.render(self._complex_data, 'application/xml')
        self.assertXMLContains(content, '<sub_name>first</sub_name>')
        self.assertXMLContains(content, '<sub_name>second</sub_name>')
Test XML rendering.
dataset/ETHPy150Open jpadilla/django-rest-framework-xml/tests/test_renderers.py/XMLRendererTestCase.test_render_complex_data