'TemplateResponses returned from process_view() should be passed to any
template response middleware.'

@override_settings(MIDDLEWARE=['middleware_exceptions.middleware.ProcessViewTemplateResponseMiddleware', 'middleware_exceptions.middleware.TemplateResponseMiddleware'])
def test_templateresponse_from_process_view_passed_to_process_template_response(self):

    response = self.client.get('/middleware_exceptions/view/')
    expected_lines = ['Processed    view    normal_view', 'ProcessViewTemplateResponseMiddleware', 'TemplateResponseMiddleware']
    self.assertEqual(response.content, '\n'.join(expected_lines))
