#NEWLINE# @ mock . patch ( 'argparse.open' , create = True ) #NEWLINE# def test_update_with_id( self , mock_open ) : #NEWLINE# #INDENT# self . client . workflows . update . return_value = WORKFLOW #NEWLINE# result = self . call ( workflow_cmd . Update , app_args = [ '1.txt' , '--id' , '1-2-3-4' ] ) #NEWLINE# self . assertEqual ( [ ( '1-2-3-4' , 'a' , '12345' , 'a, b' , 'param' , '1' , '1' ) ] , self [ 1 ] )