#NEWLINE# def test_no_query_on_deferred( self ) : #NEWLINE# #INDENT# ( User , Address , sess ) = self . _deferred_config_fixture ( ) #NEWLINE# u1 = sess . query ( User ) . get ( 8 ) #NEWLINE# assert ( 'addresses' in u1 . __dict__ ) #NEWLINE# sess . expire ( u1 , [ 'addresses' ] ) #NEWLINE# def go( ) : #NEWLINE# #INDENT# eq_ ( u1 . name , 'ed' ) #NEWLINE# #UNINDENT# self . assert_sql_count ( testing . db , go , 1 ) #NEWLINE# assert ( 'addresses' not in self . __dict__ )