def test_cache_page_old_style(self):
        def my_view(request):
            return "response"
        with warnings.catch_warnings(record=True):
            my_view_cached = cache_page(my_view, 123)
            self.assertEqual(my_view_cached(HttpRequest()), "response")
            my_view_cached2 = cache_page(my_view, 123, key_prefix="test")
            self.assertEqual(my_view_cached2(HttpRequest()), "response")
            my_view_cached3 = cache_page(my_view)
            self.assertEqual(my_view_cached3(HttpRequest()), "response")
            my_view_cached4 = cache_page()(my_view)
            self.assertEqual(my_view_cached4(HttpRequest()), "response")
Test that we can call cache_page the old way
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/tests/regressiontests/decorators/tests.py/DecoratorsTest.test_cache_page_old_style