#NEWLINE# def test_startCheckingExpirationParameterDeprecated( self ) : #NEWLINE# #INDENT# '\n        L{server.Session.startCheckingExpiration} emits a deprecation warning\n        if it is invoked with a parameter.\n        ' #NEWLINE# self . session . startCheckingExpiration ( 123 ) #NEWLINE# warnings = self . flushWarnings ( [ self . test_startCheckingExpirationParameterDeprecated ] ) #NEWLINE# self . assertEqual ( len ( warnings ) , 1 ) #NEWLINE# self . assertEqual ( warnings [ 0 ] [ 'category' ] , DeprecationWarning ) #NEWLINE# self . assertEqual ( warnings [ 0 ] [ 'message' ] , 'The lifetime parameter to startCheckingExpiration is deprecated since Twisted 9.0.  See Session.sessionTimeout instead.' )