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

Method test_dict_materialization

Lib/test/test_opcache.py:1229–1234  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1227 )
1228
1229 def test_dict_materialization(self):
1230 c = C()
1231 c.a = 1
1232 c.b = 2
1233 c.__dict__
1234 self.assertEqual(c.__dict__, {"a":1, "b": 2})
1235
1236 def test_dict_dematerialization(self):
1237 c = C()

Callers

nothing calls this directly

Calls 2

CClass · 0.70
assertEqualMethod · 0.45

Tested by

no test coverage detected