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

Method testSingleton

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

Source from the content-addressed store, hash-verified

630# Test Cases
631class TzUTCTest(unittest.TestCase):
632 def testSingleton(self):
633 UTC_0 = tz.tzutc()
634 UTC_1 = tz.tzutc()
635
636 self.assertIs(UTC_0, UTC_1)
637
638 def testOffset(self):
639 ct = datetime(2009, 4, 1, 12, 11, 13, tzinfo=tz.tzutc())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected