#NEWLINE# def csvdiff_summary_cmd( self , * args ) : #NEWLINE# #INDENT# RunResult = namedtuple ( 'RunResult' , 'exit_code summary output' ) #NEWLINE# t = tempfile . NamedTemporaryFile ( delete = True ) #NEWLINE# test_args = ( '--output' , t . name , '--style' , 'summary' ) #NEWLINE# result = self . runner . invoke ( csvdiff . csvdiff_cmd , ( test_args + args ) ) #NEWLINE# with open ( t . name , 'r' ) as istream : #NEWLINE# #INDENT# summary = istream . read ( ) #NEWLINE# #UNINDENT# return RunResult ( result . exit_code , summary , result . output )