def METHOD_NAME(
    self,
    rotating_logger,
    binary,
    rotation_strategy,
    prepare_logfiles,
    stream_class,
):
    log_content = prepare_logfiles(
        rotating_logger, binary, rotation_strategy.wait
    )
    log_length = sum(map(len, log_content))
    stream = stream_class(
        rotating_logger.pattern, rotation_strategy.strategy, binary
    )
    with closing(stream):
        # same pos
        pos1 = stream.position
        assert stream.compare(pos1, pos1) == 0
        # same file
        stream.readline()
        pos2 = stream.position
        assert stream.compare(pos1, pos2) < 0
        assert stream.compare(pos2, pos1) > 0
        # different files
        stream.seek()
        stream.read(log_length // 4)
        pos1 = stream.position
        stream.read(log_length // 2)
        pos2 = stream.position
        assert stream.compare(pos1, pos2) < 0
        assert stream.compare(pos2, pos1) > 0