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

Method testTzOffsetRepr

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

Source from the content-addressed store, hash-verified

706 timedelta(seconds=3600))
707
708 def testTzOffsetRepr(self):
709 tname = 'EST'
710 tzo = tz.tzoffset(tname, -5 * 3600)
711 self.assertEqual(repr(tzo), "tzoffset(" + repr(tname) + ", -18000)")
712
713 def testEquality(self):
714 utc = tz.tzoffset('UTC', 0)

Callers

nothing calls this directly

Calls 1

tzoffsetMethod · 0.80

Tested by

no test coverage detected