def test_request_DATA_with_form_content(self):
        data = {'qwerty': 'uiop'}
        request = Request(factory.post('/', data))
        request.parsers = (FormParser(), MultiPartParser())
        self.assertEqual(list(request.data.items()), list(data.items()))
Ensure request.data returns content for POST request with form content.
dataset/ETHPy150Open tomchristie/django-rest-framework/tests/test_request.py/TestContentParsing.test_request_DATA_with_form_content