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

Method testTimeOnlyRangeFixed

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

Source from the content-addressed store, hash-verified

1412 self.assertEqual(dt_dst.tzname(), 'EDT')
1413
1414 def testTimeOnlyRangeFixed(self):
1415 # This is a fixed-offset zone, so tzrange allows this
1416 tz_range = tz.tzrange('dflt', stdoffset=timedelta(hours=-3))
1417 self.assertEqual(dt_time(13, 20, tzinfo=tz_range).utcoffset(),
1418 timedelta(hours=-3))
1419
1420 def testTimeOnlyRange(self):
1421 # tzrange returns None because this zone has DST

Callers

nothing calls this directly

Calls 1

utcoffsetMethod · 0.45

Tested by

no test coverage detected