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

Method testExistsNaive

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

Source from the content-addressed store, hash-verified

2735 self.assertFalse(tz.datetime_exists(dt))
2736
2737 def testExistsNaive(self):
2738 tzi = tz.gettz('Australia/Sydney')
2739
2740 dt = datetime(2012, 10, 7, 10, 30)
2741
2742 self.assertTrue(tz.datetime_exists(dt, tz=tzi))
2743
2744 def testExistsAware(self):
2745 tzi = tz.gettz('Australia/Sydney')

Callers

nothing calls this directly

Calls 1

gettzMethod · 0.45

Tested by

no test coverage detected