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

Method testExistsNaive

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

Source from the content-addressed store, hash-verified

2641 self.assertFalse(tz.datetime_exists(dt))
2642
2643 def testExistsNaive(self):
2644 tzi = tz.gettz('Australia/Sydney')
2645
2646 dt = datetime(2012, 10, 7, 10, 30)
2647
2648 self.assertTrue(tz.datetime_exists(dt, tz=tzi))
2649
2650 def testExistsAware(self):
2651 tzi = tz.gettz('Australia/Sydney')

Callers

nothing calls this directly

Calls 1

gettzMethod · 0.45

Tested by

no test coverage detected