  from rest_framework.test import APIRequestFactory
  import datetime
  import pickle
  import re
  import UserDict
  import collections
  import json
  
  
  DUMMYSTATUS = status.HTTP_200_OK
  DUMMYCONTENT = 'dummycontent'
  
 
</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})    
  from rest_framework.test import APIRequestFactory
  import datetime
  import pickle
  import re



  
  
  DUMMYSTATUS = status.HTTP_200_OK
  DUMMYCONTENT = 'dummycontent'
  
keep keep keep keep replace replace replace keep keep keep keep keep
 Fix compat issues for #1231 
rest_framework/tests/test_renderers.py