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

Method testEquality

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

Source from the content-addressed store, hash-verified

799@pytest.mark.tzlocal
800class TzLocalTest(unittest.TestCase):
801 def testEquality(self):
802 tz1 = tz.tzlocal()
803 tz2 = tz.tzlocal()
804
805 # Explicitly calling == and != here to ensure the operators work
806 self.assertTrue(tz1 == tz2)
807 self.assertFalse(tz1 != tz2)
808
809 def testInequalityFixedOffset(self):
810 tzl = tz.tzlocal()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected