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

Method testOffset

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

Source from the content-addressed store, hash-verified

636 self.assertIs(UTC_0, UTC_1)
637
638 def testOffset(self):
639 ct = datetime(2009, 4, 1, 12, 11, 13, tzinfo=tz.tzutc())
640
641 self.assertEqual(ct.utcoffset(), timedelta(seconds=0))
642
643 def testDst(self):
644 ct = datetime(2009, 4, 1, 12, 11, 13, tzinfo=tz.tzutc())

Callers

nothing calls this directly

Calls 1

utcoffsetMethod · 0.45

Tested by

no test coverage detected