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

Method testTimedeltaOffset

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

Source from the content-addressed store, hash-verified

671@pytest.mark.tzoffset
672class TzOffsetTest(unittest.TestCase):
673 def testTimedeltaOffset(self):
674 est = tz.tzoffset('EST', timedelta(hours=-5))
675 est_s = tz.tzoffset('EST', -18000)
676
677 self.assertEqual(est, est_s)
678
679 def testTzNameNone(self):
680 gmt5 = tz.tzoffset(None, -18000) # -5:00

Callers

nothing calls this directly

Calls 1

tzoffsetMethod · 0.80

Tested by

no test coverage detected