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

Method test_defold

tests/test_tz.py:2780–2785  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2778 assert dt.fold == 0
2779
2780 def test_defold(self):
2781 dt = tz.enfold(datetime(2020, 1, 19, 3, 32), fold=1)
2782
2783 dt2 = tz.enfold(dt, fold=0)
2784
2785 assert dt2.fold == 0
2786
2787@pytest.mark.tz_resolve_imaginary
2788class ImaginaryDateTest(TzSourceMixin, unittest.TestCase):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected