def METHOD_NAME(filename: str, expected: str) -> bool:
    """Returns true if the given file contains the given string."""
    with open(filename, 'r') as stream:
        content = stream.readlines()
    return ''.join(content) == expected