          self.template_name = template_name
          self.exception = exception
          
          if headers:
              for name,value in headers.iteritems():
                  self[name] = value
  
      @property
      def rendered_content(self):
          renderer = getattr(self, 'accepted_renderer', None)
 
</s> remove         self.assertEquals(response.content, '')
 </s> add         self.assertEquals(response.content, six.b('')) </s> remove         self.assertEqual(json.loads(response.content)['token'], self.key)
 </s> add         self.assertEqual(json.loads(response.content.decode('ascii'))['token'], self.key) </s> remove         self.assertEquals(resp.content, '')
 </s> add         self.assertEquals(resp.content, six.b('')) </s> remove         self.assertEquals(resp.content, '')
 </s> add         self.assertEquals(resp.content, six.b('')) </s> remove             for key, value in data.iteritems():
 </s> add             for key, value in six.iteritems(data):
            for name, value in six.iteritems(headers):
          self.template_name = template_name
          self.exception = exception
          
          if headers:
            for name, value in six.iteritems(headers):
                  self[name] = value
  
      @property
      def rendered_content(self):
          renderer = getattr(self, 'accepted_renderer', None)
keep keep keep keep replace keep keep keep keep keep
 Every (base) test should now pass with python3. 
rest_framework/response.py