raise an ContentNotRenderedError exception with an sring 'The response content must be rendered before it can be accessed.'.
raise ContentNotRenderedError ( 'The response content must be ' 'rendered before it can be accessed.' )