#NEWLINE# def test_was_expired_via_commit( self ) : #NEWLINE# #INDENT# User = self . classes . User #NEWLINE# canary = self . _fixture ( ) #NEWLINE# sess = Session ( ) #NEWLINE# u1 = User ( name = 'u1' ) #NEWLINE# sess . add ( u1 ) #NEWLINE# sess . commit ( ) #NEWLINE# sess . query ( User ) . first ( ) #NEWLINE# eq_ ( canary , [ ( 'refresh' , set ( [ 'id' , 'name' ] ) ) ] )