def test_timerange2(entry, refutcdate, result): with on_time(refutcdate, "UTC"): assert vs.Timerange.compute_range(entry) == vs.ComputedTimerange(*result)
def test_timerange(entry, result): with on_time("2019-09-05 16:50", "UTC"): assert vs.Timerange.compute_range(entry) == vs.ComputedTimerange(*result)