MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_values_on_instance

Method test_values_on_instance

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

Source from the content-addressed store, hash-verified

1058 c.a, c.b, c.c = 0,0,0
1059
1060 def test_values_on_instance(self):
1061 c = C()
1062 c.a = 1
1063 C().b = 2
1064 c.c = 3
1065 self.assertEqual(
1066 _testinternalcapi.get_object_dict_values(c),
1067 (1, '<NULL>', 3)
1068 )
1069
1070 def test_dict_materialization(self):
1071 c = C()

Callers

nothing calls this directly

Calls 2

CClass · 0.70
assertEqualMethod · 0.45

Tested by

no test coverage detected