      XMLRenderer, JSONPRenderer, BrowsableAPIRenderer, UnicodeJSONRenderer
  from rest_framework.parsers import YAMLParser, XMLParser
  from rest_framework.settings import api_settings
  from rest_framework.test import APIRequestFactory
  import datetime
  import json
  import pickle
  import re
  
 
</s> remove import UserDict
import collections
import json
 </s> add  </s> remove         self.assertEquals(json.loads(ret), {'key': 'string value', '2': 3})
            
 </s> add         data = json.loads(ret.decode('utf-8'))
        self.assertEquals(data, {'key': 'string value', '2': 3})     </s> remove         class Dict(collections.MutableMapping):
 </s> add         class Dict(MutableMapping):
from collections import MutableMapping
      XMLRenderer, JSONPRenderer, BrowsableAPIRenderer, UnicodeJSONRenderer
  from rest_framework.parsers import YAMLParser, XMLParser
  from rest_framework.settings import api_settings
  from rest_framework.test import APIRequestFactory
from collections import MutableMapping
  import datetime
  import json
  import pickle
  import re
  
keep keep keep add keep keep keep keep keep
 Fix compat issues for #1231 
rest_framework/tests/test_renderers.py