          resp = self.client.get('/jsonp/nojsonrenderer',
                                 HTTP_ACCEPT='application/javascript')
          self.assertEquals(resp.status_code, 200)
          self.assertEquals(resp['Content-Type'], 'application/javascript')
          self.assertEquals(resp.content, 'callback(%s);' % _flat_repr)
  
      def test_with_callback(self):
          """
          Test JSONP rendering with callback function name.
          """
 
</s> remove         self.assertEquals(resp.content, 'callback(%s);' % _flat_repr)
 </s> add         self.assertEquals(resp.content,
            ('callback(%s);' % _flat_repr).encode('ascii')) </s> remove         self.assertEquals(resp.content, '%s(%s);' % (callback_func, _flat_repr))
 </s> add         self.assertEquals(resp.content,
            ('%s(%s);' % (callback_func, _flat_repr)).encode('ascii')) </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         self.assertEqual(request.POST.items(), data.items())
 </s> add         self.assertEqual(list(request.POST.items()), list(data.items()))
        self.assertEquals(resp.content,
            ('callback(%s);' % _flat_repr).encode('ascii'))
          resp = self.client.get('/jsonp/nojsonrenderer',
                                 HTTP_ACCEPT='application/javascript')
          self.assertEquals(resp.status_code, 200)
          self.assertEquals(resp['Content-Type'], 'application/javascript')
        self.assertEquals(resp.content,
            ('callback(%s);' % _flat_repr).encode('ascii'))
  
      def test_with_callback(self):
          """
          Test JSONP rendering with callback function name.
          """
keep keep keep keep replace keep keep keep keep keep
 Every (base) test should now pass with python3. 
rest_framework/tests/renderers.py