#NEWLINE# def testSignal( self ) : #NEWLINE# #INDENT# session = self . session ( ) #NEWLINE# with session . begin ( ) as t : #NEWLINE# #INDENT# m = t . add ( self . model ( code = 'ciao' ) ) #NEWLINE# m = t . add ( self . model ( code = 'bla' ) ) #NEWLINE# #UNINDENT# ( yield t . on_result ) #NEWLINE# deleted = ( yield session . query ( self . model ) . delete ( ) ) #NEWLINE# u = self . update_model #NEWLINE# self . assertEqual ( u . session , session ) #NEWLINE# self . assertEqual ( len ( u . instances ) , 2 )