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

Method check_100

Lib/test/test_class.py:936–938  ·  view source on GitHub ↗
(self, obj)

Source from the content-addressed store, hash-verified

934 setattr(obj, f"a{i}", i)
935
936 def check_100(self, obj):
937 for i in range(100):
938 self.assertEqual(getattr(obj, f"a{i}"), i)
939
940 def test_many_attributes(self):
941 class C: pass

Callers 2

test_many_attributesMethod · 0.95

Calls 1

assertEqualMethod · 0.45

Tested by

no test coverage detected