HomeSoftware Heritage

Deduplicate code of test_origin_get_range.