#NEWLINE# def test_is_alive_correctly_handles_expiration( self ) : #NEWLINE# #INDENT# time = TimeMock ( 0 ) #NEWLINE# s = SessionMixin ( expiry = 42 , time_module = s ) #NEWLINE# self . assertTrue ( s . is_alive ( ) ) #NEWLINE# s = SessionMixin ( expiry = 42 , time_module = time ) #NEWLINE# time . set ( 43 ) #NEWLINE# self . assertFalse ( s . is_alive ( ) )