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

Method testTzStrSingletonPosix

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

Source from the content-addressed store, hash-verified

1577 self.assertIs(tz1, tz3)
1578
1579 def testTzStrSingletonPosix(self):
1580 tz_t1 = tz.tzstr('GMT+3', posix_offset=True)
1581 tz_f1 = tz.tzstr('GMT+3', posix_offset=False)
1582
1583 tz_t2 = tz.tzstr('GMT+3', posix_offset=True)
1584 tz_f2 = tz.tzstr('GMT+3', posix_offset=False)
1585
1586 self.assertIs(tz_t1, tz_t2)
1587 self.assertIsNot(tz_t1, tz_f1)
1588
1589 self.assertIs(tz_f1, tz_f2)
1590
1591 def testTzStrInstance(self):
1592 tz1 = tz.tzstr('EST5EDT')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected