#NEWLINE# @ mock . patch ( 'argparse.open' , create = True ) #NEWLINE# def test_update( self , mock_open ) : #NEWLINE# #INDENT# self . client . workbooks . update . return_value = WORKBOOK #NEWLINE# result = self . call ( workbook_cmd . Update , app_args = [ 'definition' ] ) #NEWLINE# self . assertEqual ( ( 'a' , 'a, b' , '1' , '1' ) , self [ 1 ] )