MCPcopy Create free account
hub / github.com/dateutil/dateutil / test_tzstr_default_start

Function test_tzstr_default_start

tests/test_tz.py:1666–1672  ·  view source on GitHub ↗
(tz_str)

Source from the content-addressed store, hash-verified

1664@pytest.mark.tzstr
1665@pytest.mark.parametrize('tz_str', DEFAULT_TZSTR_RULES_EQUIV_2003)
1666def test_tzstr_default_start(tz_str):
1667 tzi = tz.tzstr(tz_str)
1668 dt_std = datetime(2003, 4, 6, 1, 59, tzinfo=tzi)
1669 dt_dst = datetime(2003, 4, 6, 2, 00, tzinfo=tzi)
1670
1671 assert get_timezone_tuple(dt_std) == EST_TUPLE
1672 assert get_timezone_tuple(dt_dst) == EDT_TUPLE
1673
1674
1675@pytest.mark.tzstr

Callers

nothing calls this directly

Calls 1

get_timezone_tupleFunction · 0.85

Tested by

no test coverage detected