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

def test_body_after_POST_multipart_form_data(self):

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