MCPcopy Index your code
hub / github.com/python/cpython / test_pickling_subclass_datetime

Method test_pickling_subclass_datetime

Lib/test/datetimetester.py:2587–2594  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2585 self.assertEqual(b.day, 7)
2586
2587 def test_pickling_subclass_datetime(self):
2588 args = 6, 7, 23, 20, 59, 1, 64**2
2589 orig = SubclassDatetime(*args)
2590 for pickler, unpickler, proto in pickle_choices:
2591 green = pickler.dumps(orig, proto)
2592 derived = unpickler.loads(green)
2593 self.assertEqual(orig, derived)
2594 self.assertTrue(isinstance(derived, SubclassDatetime))
2595
2596 def test_compat_unpickle(self):
2597 tests = [

Callers

nothing calls this directly

Calls 5

SubclassDatetimeClass · 0.85
assertTrueMethod · 0.80
dumpsMethod · 0.45
loadsMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected