#NEWLINE# @ mock . patch ( 'argparse.open' , create = True ) #NEWLINE# def test_create_long_input( self , mock_open ) : #NEWLINE# #INDENT# wf_long_input_dict = WORKFLOW_DICT . copy ( ) #NEWLINE# long_input = ', ' . join ( [ ( 'var%s' % i ) for i in six . moves . xrange ( 10 ) ] ) #NEWLINE# wf_long_input_dict [ 'input' ] = long_input #NEWLINE# workflow_long_input = workflows . Workflow ( mock , wf_long_input_dict ) #NEWLINE# self . client . workflows . create . return_value = [ workflow_long_input ] #NEWLINE# result = self . call ( workflow_cmd . Create , app_args = [ '1.txt' ] ) #NEWLINE# self . assertEqual ( [ ( '1-2-3-4' , 'a' , '12345' , 'a, b' , cmd_base . cut ( long_input ) , '1' , '1' ) ] , result [ 1 ] )