#NEWLINE# def test_as_argument( self ) : #NEWLINE# #INDENT# template = '{% show_current_number as page_number %}' #NEWLINE# ( html , context ) = self . render ( self . request ( page = 4 ) , template ) #NEWLINE# self . assertEqual ( '' , html ) #NEWLINE# self . assertIn ( 'page_number' , context ) #NEWLINE# self . assertEqual ( 4 , context [ 'page_number' ] )