'Test that we can call cache_page the old way'

def test_cache_page_old_style(self):

    def my_view(request):
        return 'response'
    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')
