  
  from rest_framework.compat import StringIO
  from rest_framework.compat import six
  import datetime
  from decimal import Decimal
  
  
  DUMMYSTATUS = status.HTTP_200_OK
  DUMMYCONTENT = 'dummycontent'
  
 
</s> remove from xml.etree import ElementTree as ET
from xml.parsers.expat import ExpatError
 </s> add  </s> remove from rest_framework.compat import yaml, ETParseError, ET_XMLParser
 </s> add from rest_framework.compat import yaml, etree </s> remove import pickle
import re

 </s> add from decimal import Decimal </s> remove from rest_framework.compat import yaml, patterns, url, include
 </s> add from rest_framework.compat import yaml, etree, patterns, url, include
import pickle
import re
  
  from rest_framework.compat import StringIO
  from rest_framework.compat import six
  import datetime
import pickle
import re
  
  
  DUMMYSTATUS = status.HTTP_200_OK
  DUMMYCONTENT = 'dummycontent'
  
keep keep keep keep replace keep 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