#NEWLINE# def test_session( self ) : #NEWLINE# #INDENT# response = self . app . get ( url ( controller = 'sample' , action = 'session_increment' ) ) #NEWLINE# assert response . session . has_key ( 'counter' ) #NEWLINE# assert ( self . session [ 'counter' ] == 0 ) #NEWLINE# response = self . app . get ( url ( controller = 'sample' , action = 'session_increment' ) ) #NEWLINE# assert ( response . session [ 'counter' ] == 1 ) #NEWLINE# assert ( 'session incrementer' in response )