def METHOD_NAME():
    start_date = arrow.get("2014-09-30")
    end_date = arrow.get("2014-10-01")
    datespan = {
        "start_date": start_date.format("YYYY-MM-DD"),
        "end_date": end_date.format("YYYY-MM-DD"),
    }
    ts = parse_as_when(datespan)
    assert isinstance(ts, DateSpan)
    assert ts.start == start_date
    assert ts.end == end_date
    assert ts.spanning
    assert ts.all_day
    assert not ts.is_time
    assert ts.is_date
    assert ts.delta == timedelta(days=1)