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

Function test_parse_isodate

tests/test_isoparser.py:380–386  ·  view source on GitHub ↗
(d, dt_fmt, as_bytes)

Source from the content-addressed store, hash-verified

378@pytest.mark.parametrize('d,dt_fmt', __make_date_examples())
379@pytest.mark.parametrize('as_bytes', [True, False])
380def test_parse_isodate(d, dt_fmt, as_bytes):
381 d_str = d.strftime(dt_fmt)
382 if as_bytes:
383 d_str = d_str.encode('ascii')
384
385 iparser = isoparser()
386 assert iparser.parse_isodate(d_str) == d
387
388
389@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

isoparserClass · 0.90
parse_isodateMethod · 0.80

Tested by

no test coverage detected