'Reading body after parsing multipart/form-data is not allowed'

def test_body_after_POST_multipart_form_data(self):

    payload = FakePayload('\r\n'.join(['--boundary', 'Content-Disposition:    form-data;    name="name"', '', 'value', '--boundary--']))
    request = WSGIRequest({'REQUEST_METHOD': 'POST', 'CONTENT_TYPE': 'multipart/form-data;    boundary=boundary', 'CONTENT_LENGTH': len(payload), 'wsgi.input': payload})
    self.assertEqual(request.POST, {'name': ['value']})
    with self.assertRaises(RawPostDataException):
        request.body
