'Runs tidy and checks that output matches content of file `expected`.'

def run_tidy_and_check_result(self, options, input, output=TEMP_FILE, expected=None):

    result = self.run_tidy(options, input, output)
    return self.compare_tidy_results((output or result), (expected or input))
