'Checks for Duplicate Files'

def run(self):

    if (not self.file_dict):
        (yield Result(self, 'You    did    not    add    any    file    to    compare', severity=RESULT_SEVERITY.MAJOR))
    elif (len(self.file_dict) == 1):
        (yield Result(self, 'You    included    only    one    file', severity=RESULT_SEVERITY.MAJOR))
    else:
        unique_tuples = [file_tuple for file_tuple in itertools.combinations(self.file_dict, 2)]
        for file_pair in unique_tuples:
            if (self.file_dict[file_pair[0]] == self.file_dict[file_pair[1]]):
                first_file_name = file_pair[0]
                second_file_name = file_pair[1]
                message = ((('File    ' + first_file_name) + '    is    identical    to    File    ') + second_file_name)
                (yield Result.from_values(origin=self, message=message, severity=RESULT_SEVERITY.INFO, file=first_file_name))
