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

Method testTzOffsetRepr

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

Source from the content-addressed store, hash-verified

688 timedelta(seconds=3600))
689
690 def testTzOffsetRepr(self):
691 tname = 'EST'
692 tzo = tz.tzoffset(tname, -5 * 3600)
693 self.assertEqual(repr(tzo), "tzoffset(" + repr(tname) + ", -18000)")
694
695 def testEquality(self):
696 utc = tz.tzoffset('UTC', 0)

Callers

nothing calls this directly

Calls 1

tzoffsetMethod · 0.80

Tested by

no test coverage detected