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

Method testParseWithNulls

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

Source from the content-addressed store, hash-verified

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",

Callers

nothing calls this directly

Calls 1

parseFunction · 0.90

Tested by

no test coverage detected