(self, fmt, dstr)
| 281 | ("%y %d %b", "03 25 Sep",), |
| 282 | ]) |
| 283 | def test_strftime_formats_2003Sep25(self, fmt, dstr): |
| 284 | expected = datetime(2003, 9, 25) |
| 285 | |
| 286 | # First check that the format strings behave as expected |
| 287 | # (not strictly necessary, but nice to have) |
| 288 | assert expected.strftime(fmt) == dstr |
| 289 | |
| 290 | res = parse(dstr) |
| 291 | assert res == expected |
| 292 | |
| 293 | |
| 294 | class TestInputTypes(object): |