'Construction of POST or body is not allowed after reading
from request.'

def test_value_after_read(self):

    payload = FakePayload('name=value')
    request = WSGIRequest({'REQUEST_METHOD': 'POST', 'CONTENT_TYPE': 'application/x-www-form-urlencoded', 'CONTENT_LENGTH': len(payload), 'wsgi.input': payload})
    self.assertEqual(request.read(2), 'na')
    with self.assertRaises(RawPostDataException):
        request.body
    self.assertEqual(request.POST, {})
