def test_no_running_backdoor():
    parser = setup_parser()
    args = parser.parse_args(['backdoor', '0'])
    with patch.multiple(
        'nameko.cli.backdoor', call=DEFAULT, os=DEFAULT
    ) as mocks:
        mocks['os'].system.return_value = 0
        mocks['call'].return_value = -1
        with pytest.raises(CommandError) as exc:
            main(args)
    assert 'Backdoor unreachable' in str(exc)
dataset/ETHPy150Open onefinestay/nameko/test/cli/test_backdoor.py/test_no_running_backdoor/original