def get_file_contents(file_path):
    """ Get expected result from file. """
    try:
        with open(file_path, 'r') as f:
            # remove string literals (needed in python2) and newlines
            return f.read().replace('\r', '').strip()
    except OSError as e:
        raise e