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

Method testTzNameNone

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

Source from the content-addressed store, hash-verified

677 self.assertEqual(est, est_s)
678
679 def testTzNameNone(self):
680 gmt5 = tz.tzoffset(None, -18000) # -5:00
681 self.assertIs(datetime(2003, 10, 26, 0, 0, tzinfo=gmt5).tzname(),
682 None)
683
684 def testTimeOnlyOffset(self):
685 # tzoffset doesn't care

Callers

nothing calls this directly

Calls 2

tzoffsetMethod · 0.80
tznameMethod · 0.45

Tested by

no test coverage detected