#NEWLINE# def test_cache_page_old_style( self ) : #NEWLINE# #INDENT# '\n        Test that we can call cache_page the old way\n        ' #NEWLINE# def my_view( request ) : #NEWLINE# #INDENT# return 'response' #NEWLINE# #UNINDENT# my_view_cached = cache_page ( my_view , 123 ) #NEWLINE# self . assertEqual ( my_view_cached ( HttpRequest ( ) ) , 'response' ) #NEWLINE# my_view_cached2 = cache_page ( my_view , 123 , key_prefix = 'test' ) #NEWLINE# self . assertEqual ( my_view_cached2 ( HttpRequest ( ) ) , 'response' ) #NEWLINE# my_view_cached3 = cache_page ( my_view_cached2 ) #NEWLINE# self . assertEqual ( my_view_cached3 ( HttpRequest ( ) ) , 'response' ) #NEWLINE# my_view_cached4 = cache_page ( ) ( my_view ) #NEWLINE# self . assertEqual ( my_view_cached4 ( HttpRequest ( ) ) , 'response' )