def test_request_DATA_with_text_content(self):
        content = six.b('qwerty')
        content_type = 'text/plain'
        request = Request(factory.post('/', content, content_type=content_type))
        request.parsers = (PlainTextParser(),)
        self.assertEqual(request.data, content)
Ensure request.data returns content for POST request with
dataset/ETHPy150Open tomchristie/django-rest-framework/tests/test_request.py/TestContentParsing.test_request_DATA_with_text_content