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

Method testDayFirstYearFirst

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

Source from the content-addressed store, hash-verified

673 datetime(2007, 1, 9))
674
675 def testDayFirstYearFirst(self):
676 dtstr = '090107'
677 # Should be YYDDMM
678 self.assertEqual(parse(dtstr, yearfirst=True, dayfirst=True),
679 datetime(2009, 7, 1))
680
681 def testUnambiguousYearFirst(self):
682 dtstr = '2015 09 25'

Callers

nothing calls this directly

Calls 1

parseFunction · 0.90

Tested by

no test coverage detected