          """
          Ensure request.data returns content for POST request with
          non-form content.
          """
          content = six.b('qwerty')
          content_type = 'text/plain'
          request = Request(factory.post('/', content, content_type=content_type))
          request.parsers = (PlainTextParser(),)
          assert request.data == content
  
 
</s> remove         content = six.b('qwerty')
 </s> add         content = b'qwerty' </s> remove         assert response.content == six.b('')
 </s> add         assert response.content == b'' </s> remove         request = factory.put('/{0}'.format(filtered_out_pk), data, format='json')
 </s> add         request = factory.put('/{}'.format(filtered_out_pk), data, format='json') </s> remove from __future__ import unicode_literals

 </s> add  </s> remove         expected = "{0}; charset={1}".format(RendererC.media_type, RendererC.charset)
 </s> add         expected = "{}; charset={}".format(RendererC.media_type, RendererC.charset)
        content = b'qwerty'
          """
          Ensure request.data returns content for POST request with
          non-form content.
          """
        content = b'qwerty'
          content_type = 'text/plain'
          request = Request(factory.post('/', content, content_type=content_type))
          request.parsers = (PlainTextParser(),)
          assert request.data == content
  
keep keep keep keep replace keep keep keep keep keep
 Dropped Python 2 compatibility. (#6615)

Thanks to Jon Dufresne (@jdufresne) for review.

Co-authored-by: Asif Saif Uddin <auvipy@gmail.com>
Co-authored-by: Rizwan Mansuri <Rizwan@webbyfox.com> 
tests/test_request.py