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

Method testTimeOnlyRange

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

Source from the content-addressed store, hash-verified

1342 timedelta(hours=-3))
1343
1344 def testTimeOnlyRange(self):
1345 # tzrange returns None because this zone has DST
1346 tz_range = tz.tzrange('EST', timedelta(hours=-5),
1347 'EDT', timedelta(hours=-4))
1348 self.assertIs(dt_time(13, 20, tzinfo=tz_range).utcoffset(), None)
1349
1350 def testBrokenIsDstHandling(self):
1351 # tzrange._isdst() was using a date() rather than a datetime().

Callers

nothing calls this directly

Calls 1

utcoffsetMethod · 0.45

Tested by

no test coverage detected