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

Method testTimeOnlyRange

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

Source from the content-addressed store, hash-verified

1418 timedelta(hours=-3))
1419
1420 def testTimeOnlyRange(self):
1421 # tzrange returns None because this zone has DST
1422 tz_range = tz.tzrange('EST', timedelta(hours=-5),
1423 'EDT', timedelta(hours=-4))
1424 self.assertIs(dt_time(13, 20, tzinfo=tz_range).utcoffset(), None)
1425
1426 def testBrokenIsDstHandling(self):
1427 # 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