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

Method testInequalityInvalid

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

Source from the content-addressed store, hash-verified

817 self.assertTrue(tzl != tzod)
818
819 def testInequalityInvalid(self):
820 tzl = tz.tzlocal()
821
822 self.assertTrue(tzl != 1)
823 self.assertFalse(tzl == 1)
824
825 # TODO: Use some sort of universal local mocking so that it's clear
826 # that we're expecting tzlocal to *not* be Pacific/Kiritimati
827 LINT = tz.gettz('Pacific/Kiritimati')
828 self.assertTrue(tzl != LINT)
829 self.assertFalse(tzl == LINT)
830
831 def testInequalityUnsupported(self):
832 tzl = tz.tzlocal()

Callers

nothing calls this directly

Calls 1

gettzMethod · 0.45

Tested by

no test coverage detected