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

Method testTimedeltaOffset

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

Source from the content-addressed store, hash-verified

689@pytest.mark.tzoffset
690class TzOffsetTest(unittest.TestCase):
691 def testTimedeltaOffset(self):
692 est = tz.tzoffset('EST', timedelta(hours=-5))
693 est_s = tz.tzoffset('EST', -18000)
694
695 self.assertEqual(est, est_s)
696
697 def testTzNameNone(self):
698 gmt5 = tz.tzoffset(None, -18000) # -5:00

Callers

nothing calls this directly

Calls 1

tzoffsetMethod · 0.80

Tested by

no test coverage detected