          self.assertXMLContains(content, '<sub_name>first</sub_name>')
          self.assertXMLContains(content, '<sub_name>second</sub_name>')
  
      def test_render_and_parse_complex_data(self):
          """
          Test XML rendering.
          """
 
</s> remove # xml.etree.parse only throws ParseError for python >= 2.7
 </s> add # XML is optional
    @unittest.skipUnless(etree, 'defusedxml not installed')
          self.assertXMLContains(content, '<sub_name>first</sub_name>')
          self.assertXMLContains(content, '<sub_name>second</sub_name>')
  
    @unittest.skipUnless(etree, 'defusedxml not installed')
      def test_render_and_parse_complex_data(self):
          """
          Test XML rendering.
          """
keep keep add keep keep keep keep
 defusedxml for security fix.

As per:
http://blog.python.org/2013/02/announcing-defusedxml-fixes-for-xml.html 
rest_framework/tests/renderers.py