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

Method testAmbiguity

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

Source from the content-addressed store, hash-verified

718 self.assertEqual(tzo, ComparesEqual)
719
720 def testAmbiguity(self):
721 # Pick an arbitrary datetime, this should always return False.
722 dt = datetime(2011, 9, 1, 2, 30, tzinfo=tz.tzoffset("EST", -5 * 3600))
723
724 self.assertFalse(tz.datetime_ambiguous(dt))
725
726 def testTzOffsetInstance(self):
727 tz1 = tz.tzoffset.instance('EST', timedelta(hours=-5))

Callers

nothing calls this directly

Calls 1

tzoffsetMethod · 0.80

Tested by

no test coverage detected