(self)
| 613 | assert parse(dt.isoformat()) == dt |
| 614 | |
| 615 | def testCustomParserInfo(self): |
| 616 | # Custom parser info wasn't working, as Michael Elsdörfer discovered. |
| 617 | from dateutil.parser import parserinfo, parser |
| 618 | |
| 619 | class myparserinfo(parserinfo): |
| 620 | MONTHS = parserinfo.MONTHS[:] |
| 621 | MONTHS[0] = ("Foo", "Foo") |
| 622 | myparser = parser(myparserinfo()) |
| 623 | dt = myparser.parse("01/Foo/2007") |
| 624 | assert dt == datetime(2007, 1, 1) |
| 625 | |
| 626 | def testCustomParserShortDaynames(self): |
| 627 | # Horacio Hoyos discovered that day names shorter than 3 characters, |
nothing calls this directly
no test coverage detected