def text_is_in_stream(stream, text):
    """
    Checks if the given text exists in a larger block of text, while ignoring
    line breaks.
    """
    return text.encode("utf-8") in b"".join(stream.readlines())