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

Method testTzStrInstance

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

Source from the content-addressed store, hash-verified

1589 self.assertIs(tz_f1, tz_f2)
1590
1591 def testTzStrInstance(self):
1592 tz1 = tz.tzstr('EST5EDT')
1593 tz2 = tz.tzstr.instance('EST5EDT')
1594 tz3 = tz.tzstr.instance('EST5EDT')
1595
1596 assert tz1 is not tz2
1597 assert tz2 is not tz3
1598
1599 # Ensure that these still are all the same zone
1600 assert tz1 == tz2 == tz3
1601
1602
1603@pytest.mark.smoke

Callers

nothing calls this directly

Calls 1

instanceMethod · 0.80

Tested by

no test coverage detected