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

Method test_methods

Lib/test/test_weakset.py:44–50  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

42 self.fs = WeakSet([self.obj])
43
44 def test_methods(self):
45 weaksetmethods = dir(WeakSet)
46 for method in dir(set):
47 if method.startswith('_'):
48 continue
49 self.assertIn(method, weaksetmethods,
50 "WeakSet missing method " + method)
51
52 def test_new_or_init(self):
53 self.assertRaises(TypeError, WeakSet, [], 2)

Callers

nothing calls this directly

Calls 3

dirFunction · 0.85
assertInMethod · 0.80
startswithMethod · 0.45

Tested by

no test coverage detected