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

Method _testOffset

tests/test_tz.py:917–920  ·  view source on GitHub ↗
(self, tzval, std_off, dst_off)

Source from the content-addressed store, hash-verified

915 self._testTzName(self.UTC, 'UTC', 'UTC')
916
917 def _testOffset(self, tzval, std_off, dst_off):
918 func = datetime.utcoffset
919
920 self._testTzFunc(tzval, func, std_off, dst_off)
921
922 def testOffsetDST(self):
923 self._testOffset(self.TZ_EST, timedelta(hours=-5), timedelta(hours=-4))

Callers 2

testOffsetDSTMethod · 0.95
testOffsetUTCMethod · 0.95

Calls 1

_testTzFuncMethod · 0.95

Tested by

no test coverage detected