#NEWLINE# def test_usage( self ) : #NEWLINE# #INDENT# commands = [ 'ls' , 'cd /tmp' ] #NEWLINE# lil = QueuePool ( workers = 2 ) #NEWLINE# lil . prepare_commands ( commands ) #NEWLINE# self . assertTrue ( isinstance ( self . commands , Queue ) ) #NEWLINE# self . assertEqual ( lil . commands . qsize ( ) , 2 ) #NEWLINE# lil . run ( ) #NEWLINE# self . assertEqual ( lil . commands . qsize ( ) , 0 )