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

Method testNoTzSpecified

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

Source from the content-addressed store, hash-verified

2433 """ Test the datetime_exists / datetime_ambiguous functions """
2434
2435 def testNoTzSpecified(self):
2436 with self.assertRaises(ValueError):
2437 tz.datetime_ambiguous(datetime(2016, 4, 1, 2, 9))
2438
2439 def _get_no_support_tzinfo_class(self, dt_start, dt_end, dst_only=False):
2440 # 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