def test_render_datetime(self):
        renderer = XMLRenderer()
        content = renderer.render({
            'field': datetime.datetime(2011, 12, 25, 12, 45, 00)
        }, 'application/xml')
        self.assertXMLContains(content, '<field>2011-12-25 12:45:00</field>')
Test XML rendering.
dataset/ETHPy150Open jpadilla/django-rest-framework-xml/tests/test_renderers.py/XMLRendererTestCase.test_render_datetime