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

Method testDayFirst

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

Source from the content-addressed store, hash-verified

663 datetime(2009, 1, 7))
664
665 def testDayFirst(self):
666 dtstr = '090107'
667
668 # Should be DDMMYY
669 self.assertEqual(parse(dtstr, dayfirst=True),
670 datetime(2007, 1, 9))
671
672 self.assertEqual(parse(dtstr, yearfirst=False, dayfirst=True),
673 datetime(2007, 1, 9))
674
675 def testDayFirstYearFirst(self):
676 dtstr = '090107'

Callers

nothing calls this directly

Calls 1

parseFunction · 0.90

Tested by

no test coverage detected