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

Method testAmbiguity

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

Source from the content-addressed store, hash-verified

736 self.assertEqual(tzo, ComparesEqual)
737
738 def testAmbiguity(self):
739 # Pick an arbitrary datetime, this should always return False.
740 dt = datetime(2011, 9, 1, 2, 30, tzinfo=tz.tzoffset("EST", -5 * 3600))
741
742 self.assertFalse(tz.datetime_ambiguous(dt))
743
744 def testTzOffsetInstance(self):
745 tz1 = tz.tzoffset.instance('EST', timedelta(hours=-5))

Callers

nothing calls this directly

Calls 1

tzoffsetMethod · 0.80

Tested by

no test coverage detected