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

Method testNoYearFirstNoDayFirst

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

Source from the content-addressed store, hash-verified

646 self.assertEqual(dt, datetime(2017, 1, 21))
647
648 def testNoYearFirstNoDayFirst(self):
649 dtstr = '090107'
650
651 # Should be MMDDYY
652 self.assertEqual(parse(dtstr),
653 datetime(2007, 9, 1))
654
655 self.assertEqual(parse(dtstr, yearfirst=False, dayfirst=False),
656 datetime(2007, 9, 1))
657
658 def testYearFirst(self):
659 dtstr = '090107'

Callers

nothing calls this directly

Calls 1

parseFunction · 0.90

Tested by

no test coverage detected