#NEWLINE# def test_next_command( self ) : #NEWLINE# #INDENT# lil = Pool ( workers = 2 ) #NEWLINE# commands = [ 'ls' , 'cd /tmp' ] #NEWLINE# lil . prepare_commands ( commands ) #NEWLINE# cmd1 = lil . next_command ( ) #NEWLINE# self . assertEqual ( cmd1 , 'ls' ) #NEWLINE# cmd2 = lil . next_command ( ) #NEWLINE# self . assertEqual ( cmd2 , 'cd /tmp' ) #NEWLINE# cmd3 = lil . next_command ( ) #NEWLINE# self . assertEqual ( cmd3 , None )