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

Method test_includes_timestr

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

Source from the content-addressed store, hash-verified

727 assert res.year == 2001, res
728
729 def test_includes_timestr(self):
730 timestr = "2020-13-97T44:61:83"
731
732 try:
733 parse(timestr)
734 except ParserError as e:
735 assert e.args[1] == timestr
736 else:
737 pytest.fail("Failed to raise ParserError")
738
739
740class TestOutOfBounds:

Callers

nothing calls this directly

Calls 1

parseFunction · 0.90

Tested by

no test coverage detected