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

Function test_parse_dayfirst

tests/test_parser.py:171–176  ·  view source on GitHub ↗
(sep)

Source from the content-addressed store, hash-verified

169
170@pytest.mark.parametrize('sep', ['-', '.', '/', ' '])
171def test_parse_dayfirst(sep):
172 expected = datetime(2003, 9, 10)
173 fmt = sep.join(['%d', '%m', '%Y'])
174 dstr = expected.strftime(fmt)
175 result = parse(dstr, dayfirst=True)
176 assert result == expected
177
178
179@pytest.mark.parametrize('sep', ['-', '.', '/', ' '])

Callers

nothing calls this directly

Calls 1

parseFunction · 0.90

Tested by

no test coverage detected