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

Method test_class_methods

Lib/test/test_genericalias.py:206–209  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

204 self.assertEqual(C.__class__, type)
205
206 def test_class_methods(self):
207 t = dict[int, None]
208 self.assertEqual(dict.fromkeys(range(2)), {0: None, 1: None}) # This works
209 self.assertEqual(t.fromkeys(range(2)), {0: None, 1: None}) # Should be equivalent
210
211 def test_no_chaining(self):
212 t = list[int]

Callers

nothing calls this directly

Calls 2

assertEqualMethod · 0.45
fromkeysMethod · 0.45

Tested by

no test coverage detected