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

Method testDayFirstYearFirst

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

parseFunction · 0.90

Tested by

no test coverage detected