def test_full_dec_normal(self):

        @full_dec
        def normal_view(request):
            t = Template("Hello world")
            return HttpResponse(t.render(Context({})))

        request = self.rf.get('/')
        response = 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))
Helper function to configure a mocked urllib3 response.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/tests/regressiontests/utils/decorators.py/DecoratorFromMiddlewareTests.test_full_dec_normal--crossover with--dataset/ETHPy150Open sigmavirus24/requests-toolbelt/tests/test_dump.py/RequestResponseMixin.configure_httpresponse