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

Method testFuzzyIgnoreAMPM

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

Source from the content-addressed store, hash-verified

536 self.assertEqual(parse(s4, fuzzy=True), datetime(2003, 12, 3, 3))
537
538 def testFuzzyIgnoreAMPM(self):
539 s1 = "Jan 29, 1945 14:45 AM I going to see you there?"
540 with pytest.warns(UnknownTimezoneWarning):
541 res = parse(s1, fuzzy=True)
542 self.assertEqual(res, datetime(1945, 1, 29, 14, 45))
543
544 def testRandomFormat24(self):
545 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