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

Method testNoTzSpecified

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

Source from the content-addressed store, hash-verified

2717
2718class DatetimeExistsTest(TzSourceMixin, unittest.TestCase):
2719 def testNoTzSpecified(self):
2720 with self.assertRaises(ValueError):
2721 tz.datetime_exists(datetime(2016, 4, 1, 2, 9))
2722
2723 def testInGapNaive(self):
2724 tzi = tz.gettz('Australia/Sydney')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected