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

Method testSydneyForward

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

Source from the content-addressed store, hash-verified

2787@pytest.mark.tz_resolve_imaginary
2788class ImaginaryDateTest(TzSourceMixin, unittest.TestCase):
2789 def testSydneyForward(self):
2790 tzi = tz.gettz("Australia/Sydney")
2791 dt = datetime(2018, 10, 7, 2, 30, tzinfo=tzi)
2792 dt_act = tz.resolve_imaginary(dt)
2793 dt_exp = datetime(2018, 10, 7, 3, 30, tzinfo=tzi)
2794 self.assertEqual(dt_act, dt_exp)
2795
2796 def testLondonForward(self):
2797 tzi = tz.gettz('Europe/London')

Callers

nothing calls this directly

Calls 1

gettzMethod · 0.45

Tested by

no test coverage detected