(self)
| 443 | assert res == expected |
| 444 | |
| 445 | def testParseWithNulls(self): |
| 446 | # This relies on the from __future__ import unicode_literals, because |
| 447 | # explicitly specifying a unicode literal is a syntax error in Py 3.2 |
| 448 | # May want to switch to u'...' if we ever drop Python 3.2 support. |
| 449 | pstring = '\x00\x00August 29, 1924' |
| 450 | |
| 451 | assert parse(pstring) == datetime(1924, 8, 29) |
| 452 | |
| 453 | def testDateCommandFormat(self): |
| 454 | self.assertEqual(parse("Thu Sep 25 10:36:28 BRST 2003", |