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

def test_value_after_read(self):

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