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

Method testInGapAware

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

Source from the content-addressed store, hash-verified

2634 self.assertFalse(tz.datetime_exists(dt, tz=tzi))
2635
2636 def testInGapAware(self):
2637 tzi = tz.gettz('Australia/Sydney')
2638
2639 dt = datetime(2012, 10, 7, 2, 30, tzinfo=tzi)
2640
2641 self.assertFalse(tz.datetime_exists(dt))
2642
2643 def testExistsNaive(self):
2644 tzi = tz.gettz('Australia/Sydney')

Callers

nothing calls this directly

Calls 1

gettzMethod · 0.45

Tested by

no test coverage detected