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

Method _testOffset

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

Source from the content-addressed store, hash-verified

908 self._testTzName(self.UTC, 'UTC', 'UTC')
909
910 def _testOffset(self, tzval, std_off, dst_off):
911 func = datetime.utcoffset
912
913 self._testTzFunc(tzval, func, std_off, dst_off)
914
915 def testOffsetDST(self):
916 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