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

def test_value_after_read(self):

    request = WSGIRequest({'REQUEST_METHOD': 'POST', 'wsgi.input': StringIO('name=value')})
    self.assertEqual(request.read(2), 'na')
    self.assertRaises(Exception, (lambda : request.raw_post_data))
    self.assertEqual(request.POST, {})
