#NEWLINE# def test_set_callback( self ) : #NEWLINE# #INDENT# lil = Pool ( workers = 1 ) #NEWLINE# self . assertEqual ( lil . callback , None ) #NEWLINE# lil . set_callback ( ( lambda : 'hello' ) ) #NEWLINE# self . assertNotEqual ( lil . callback , None ) #NEWLINE# self . assertEqual ( lil . callback ( ) , 'hello' ) #NEWLINE# lil . set_callback ( None ) #NEWLINE# self . assertEqual ( lil . callback , None ) #NEWLINE# lil . set_callback ( ) #NEWLINE# self . assertEqual ( lil . callback , None )