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

Method testInequalityFixedOffset

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

Source from the content-addressed store, hash-verified

800 self.assertFalse(tz1 != tz2)
801
802 def testInequalityFixedOffset(self):
803 tzl = tz.tzlocal()
804 tzos = tz.tzoffset('LST', tzl._std_offset.total_seconds())
805 tzod = tz.tzoffset('LDT', tzl._std_offset.total_seconds())
806
807 self.assertFalse(tzl == tzos)
808 self.assertFalse(tzl == tzod)
809 self.assertTrue(tzl != tzos)
810 self.assertTrue(tzl != tzod)
811
812 def testInequalityInvalid(self):
813 tzl = tz.tzlocal()

Callers

nothing calls this directly

Calls 1

tzoffsetMethod · 0.80

Tested by

no test coverage detected