def find_range(buf, (row, col)):
    for offset, line in enumerate(buf[row - 1:]):
        if LineProperties(line).is_diff_range:
            return row + offset, col
    return row, col
Testing the ReviewRequestClosedEmailHook for a review request being
dataset/ETHPy150Open hut8labs/diffscuss/diffscuss/support/editor.py/find_range--crossover with--dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/extensions/tests.py/EmailHookTests.test_review_request_closed_email_hook_discarded