def test_full_dec_normal(self):

        @full_dec
        def normal_view(request):
            template = engines['django'].from_string("Hello world")
            return HttpResponse(template.render())

        request = self.rf.get('/')
        normal_view(request)
        self.assertTrue(getattr(request, 'process_request_reached', False))
        self.assertTrue(getattr(request, 'process_view_reached', False))
        # process_template_response must not be called for HttpResponse
        self.assertFalse(getattr(request, 'process_template_response_reached', False))
        self.assertTrue(getattr(request, 'process_response_reached', False))
Test that all methods of middleware are called for normal HttpResponses
dataset/ETHPy150Open django/django/tests/utils_tests/test_decorators.py/DecoratorFromMiddlewareTests.test_full_dec_normal