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

Method testOffset

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

Source from the content-addressed store, hash-verified

618 self.assertIs(UTC_0, UTC_1)
619
620 def testOffset(self):
621 ct = datetime(2009, 4, 1, 12, 11, 13, tzinfo=tz.tzutc())
622
623 self.assertEqual(ct.utcoffset(), timedelta(seconds=0))
624
625 def testDst(self):
626 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