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

Method test_async

Lib/test/test_unittest/testmock/testasync.py:122–124  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

120class AsyncPatchCMTest(unittest.TestCase):
121 def test_is_async_function_cm(self):
122 def test_async():
123 with patch.object(AsyncClass, 'async_method') as mock_method:
124 self.assertTrue(inspect.iscoroutinefunction(mock_method))
125
126 test_async()
127

Callers

nothing calls this directly

Calls 6

runFunction · 0.90
patchFunction · 0.90
AsyncMockClass · 0.90
assertTrueMethod · 0.80
assertIsInstanceMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected