def test_run0(context): loop = mock.Mock(spec=("run", "run0")) with context.new(eventloop=loop).use(): _eventloop.run0() loop.run0.assert_called_once_with()
def test_run0(EventLoop): EventLoop.return_value = loop = unittest.mock.Mock(spec=("run", "run0")) with _runstate.state_context(None): _eventloop.run0() loop.run0.assert_called_once_with()
def test_run0(EventLoop): EventLoop.return_value = loop = unittest.mock.Mock(spec=("run", "run0")) with eventloop.async_context(): eventloop.run0() loop.run0.assert_called_once_with()
def test_run0(): with pytest.raises(NotImplementedError): eventloop.run0()
def test_run0(EventLoop): EventLoop.return_value = loop = unittest.mock.Mock(spec=("run", "run0")) with _runstate.ndb_context(): _eventloop.run0() loop.run0.assert_called_once_with()