MCPcopy Create free account
hub / github.com/python/cpython / method

Method method

Lib/test/test_unittest/testmock/testmock.py:2430–2431  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2428 async def static_method():
2429 pass
2430 async def method(self):
2431 pass
2432 mock = Mock(spec=Foo)
2433 for m in (mock.method, mock.class_method, mock.static_method):
2434 self.assertIsInstance(m, AsyncMock)

Calls

no outgoing calls

Tested by

no test coverage detected