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

Method testInequalityFixedOffset

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

Source from the content-addressed store, hash-verified

807 self.assertFalse(tz1 != tz2)
808
809 def testInequalityFixedOffset(self):
810 tzl = tz.tzlocal()
811 tzos = tz.tzoffset('LST', tzl._std_offset.total_seconds())
812 tzod = tz.tzoffset('LDT', tzl._std_offset.total_seconds())
813
814 self.assertFalse(tzl == tzos)
815 self.assertFalse(tzl == tzod)
816 self.assertTrue(tzl != tzos)
817 self.assertTrue(tzl != tzod)
818
819 def testInequalityInvalid(self):
820 tzl = tz.tzlocal()

Callers

nothing calls this directly

Calls 1

tzoffsetMethod · 0.80

Tested by

no test coverage detected