def test__normize_datetime_tmzone__with_abv_compare_to_cache(): for abrv, offset in NA_TIME_ZONE_ABRVS.items(): timestrabv = TIME_STRING1 + " " + abrv timestroffset = TIME_STRING1 + " " + offset offsetres = NA_TIME_ZONE_CONVER_CACHED_RESs[timestroffset] assert str(utils.normize_datetime_tmzone(timestrabv)) == offsetres
def test__normize_datetime_tmzone__str_with_no_tz(): notzfunc = utils.if_no_tz_add_on_utc assert str(utils.normize_datetime_tmzone(TIME_STRING1, handle_no_tz=notzfunc))
def test__normize_datetime_tmzone__with_offset_and_abv_cached_res(): for _in, _out in NA_TIME_ZONE_CONVER_CACHED_RESs.items(): assert str(utils.normize_datetime_tmzone(_in)) == _out