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

Method testDayFirst

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

parseFunction · 0.90

Tested by

no test coverage detected