'Ensure request.POST returns no content for POST request with file content.'

def test_request_POST_with_files(self):

    upload = SimpleUploadedFile(u'file.txt', 'file_content')
    request = Request(factory.post(u'/', {u'upload': upload}))
    request.parsers = (FormParser(), MultiPartParser())
    assert (list(request.POST.keys()) == [])
    assert (list(request.FILES.keys()) == [u'upload'])
