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

Method test_values_on_instance

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

Source from the content-addressed store, hash-verified

1217 c.a, c.b, c.c = 0,0,0
1218
1219 def test_values_on_instance(self):
1220 c = C()
1221 c.a = 1
1222 C().b = 2
1223 c.c = 3
1224 self.assertEqual(
1225 _testinternalcapi.get_object_dict_values(c),
1226 (1, '<NULL>', 3)
1227 )
1228
1229 def test_dict_materialization(self):
1230 c = C()

Callers

nothing calls this directly

Calls 2

CClass · 0.70
assertEqualMethod · 0.45

Tested by

no test coverage detected