[REF] base, ir_sequence: refactored date_range test in order to avoid having to deal with cursors, which just simplify the code and make it more elegant while being less error-prone