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

Method testTimeOnlyUTC

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

Source from the content-addressed store, hash-verified

673 self.assertEqual(repr(UTC), 'tzutc()')
674
675 def testTimeOnlyUTC(self):
676 # https://github.com/dateutil/dateutil/issues/132
677 # tzutc doesn't care
678 tz_utc = tz.tzutc()
679 self.assertEqual(dt_time(13, 20, tzinfo=tz_utc).utcoffset(),
680 timedelta(0))
681
682 def testAmbiguity(self):
683 # Pick an arbitrary datetime, this should always return False.

Callers

nothing calls this directly

Calls 1

utcoffsetMethod · 0.45

Tested by

no test coverage detected