tests/test_asyncio_manager.py
def AsyncMock(*args, **kwargs):
    """Return a mock asynchronous function."""
    m = mock.MagicMock(*args, **kwargs)

    @coroutine
    def mock_coro(*args, **kwargs):
        return m(*args, **kwargs)

    mock_coro.mock = m
    return mock_coro
Return a mock asynchronous function.
Return a mock asynchronous function.
Return a mock asynchronous function .
def AsyncMock(*args, **kwargs):
    m = mock.MagicMock(*args, **kwargs)
    @coroutine
    def mock_coro(*args, **kwargs):
        return m(*args, **kwargs)
    mock_coro.mock = m
    return mock_coro
def AsyncMock ( * args , ** kwargs ) : m = mock . MagicMock ( * args , ** kwargs ) @ coroutine def mock_coro ( * args , ** kwargs ) : return m ( * args , ** kwargs ) mock_coro . mock = m return mock_coro
Return a mock asynchronous function.
Return a mock asynchronous function .
"""Return a mock asynchronous function."""