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

Function test_parse_isodate_error_text

tests/test_isoparser.py:414–420  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

412
413
414def test_parse_isodate_error_text():
415 with pytest.raises(ValueError) as excinfo:
416 isoparser().parse_isodate('2014-0423')
417
418 # ensure the error message does not contain b' prefixes
419 expected_error = "String contains unknown ISO components: '2014-0423'"
420 assert expected_error == str(excinfo.value)
421
422
423###

Callers

nothing calls this directly

Calls 2

isoparserClass · 0.90
parse_isodateMethod · 0.80

Tested by

no test coverage detected