def ep(): dev = MagicMock() dev.request = AsyncMock() return endpoint.Endpoint(dev, 1)
def ep(): dev = mock.MagicMock() return endpoint.Endpoint(dev, 1)
def ep(): dev = mock.MagicMock() dev.request = CoroutineMock() return endpoint.Endpoint(dev, 1)