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

Method test_callable

Lib/test/test_bool.py:196–198  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

194 self.assertIs(hasattr([], "wobble"), False)
195
196 def test_callable(self):
197 self.assertIs(callable(len), True)
198 self.assertIs(callable(1), False)
199
200 def test_isinstance(self):
201 self.assertIs(isinstance(True, bool), True)

Callers

nothing calls this directly

Calls 2

callableFunction · 0.85
assertIsMethod · 0.45

Tested by

no test coverage detected