#NEWLINE# def test_patch_cmd_valid_args( self ) : #NEWLINE# #INDENT# result = self . patch_cmd ( '-i' , expected . diff_file , self . a_file ) #NEWLINE# self . assertEqual ( result . exit_code , 0 ) #NEWLINE# with open ( self . b_file ) as istream : #NEWLINE# #INDENT# expected = list ( csv . DictReader ( istream ) ) #NEWLINE# #UNINDENT# self . assertRecordsEqual ( result . records , expected )