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