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

Method testFuzzyIgnoreAMPM

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

Source from the content-addressed store, hash-verified

524 self.assertEqual(parse(s4, fuzzy=True), datetime(2003, 12, 3, 3))
525
526 def testFuzzyIgnoreAMPM(self):
527 s1 = "Jan 29, 1945 14:45 AM I going to see you there?"
528 with pytest.warns(UnknownTimezoneWarning):
529 res = parse(s1, fuzzy=True)
530 self.assertEqual(res, datetime(1945, 1, 29, 14, 45))
531
532 def testRandomFormat24(self):
533 self.assertEqual(parse("0:00 PM, PST", default=self.default,

Callers

nothing calls this directly

Calls 1

parseFunction · 0.90

Tested by

no test coverage detected