#NEWLINE# def test_add_to_pool( self ) : #NEWLINE# #INDENT# lil = Pool ( workers = 2 ) #NEWLINE# ls_command = lil . create_process ( 'ls' ) #NEWLINE# tmp_command = lil . create_process ( 'cd /tmp' ) #NEWLINE# self . assertEqual ( len ( self . pool ) , 0 ) #NEWLINE# lil . add_to_pool ( ls_command ) #NEWLINE# self . assertEqual ( len ( lil . pool ) , 1 ) #NEWLINE# lil . add_to_pool ( tmp_command ) #NEWLINE# self . assertEqual ( len ( lil . pool ) , 2 )