#NEWLINE# def test_notifyOnExpire( self ) : #NEWLINE# #INDENT# '\n        A function registered with L{server.Session.notifyOnExpire} is called\n        when the session expires.\n        ' #NEWLINE# callbackRan = [ False ] #NEWLINE# def expired( ) : #NEWLINE# #INDENT# callbackRan [ 0 ] = True #NEWLINE# #UNINDENT# self . session . notifyOnExpire ( self ) #NEWLINE# self . session . expire ( ) #NEWLINE# self . assertTrue ( callbackRan [ 0 ] )