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

Method test_validate_hour

tests/test_parser.py:718–722  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

716 assert res == datetime(2017, 11, self.default.day, 2, 17)
717
718 def test_validate_hour(self):
719 # See GH353
720 invalid = "201A-01-01T23:58:39.239769+03:00"
721 with pytest.raises(ParserError):
722 parse(invalid)
723
724 def test_era_trailing_year(self):
725 dstr = 'AD2001'

Callers

nothing calls this directly

Calls 1

parseFunction · 0.90

Tested by

no test coverage detected