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

Method testNoTzSpecified

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

Source from the content-addressed store, hash-verified

2523 """ Test the datetime_exists / datetime_ambiguous functions """
2524
2525 def testNoTzSpecified(self):
2526 with self.assertRaises(ValueError):
2527 tz.datetime_ambiguous(datetime(2016, 4, 1, 2, 9))
2528
2529 def _get_no_support_tzinfo_class(self, dt_start, dt_end, dst_only=False):
2530 # Generates a class of tzinfo with no support for is_ambiguous

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected