def METHOD_NAME(
    self,
    rotating_logger,
    binary,
    rotation_strategy,
    prepare_logfiles,
    stream_class,
):
    empty_line = stream_class._empty_string()
    log_content = prepare_logfiles(
        rotating_logger, binary, rotation_strategy.wait
    )
    stream = stream_class(
        rotating_logger.pattern, rotation_strategy.strategy
    )
    with closing(stream):
        for line in log_content:
            assert stream.readline() == line
        # check if we read after the end of files
        assert stream.readline() == empty_line
        assert stream.readline() == empty_line