def test_bad_no_key(tmpdir, cli):
    with tmpdir.join('ceph.conf').open('w'):
        pass
    with pytest.raises(cli.Failed) as err:
        with cli(
            args=['ceph-deploy', 'admin', 'host1'],
            stderr=subprocess.PIPE,
            ) as p:
            result = p.stderr.read()
    assert result in 'ceph.client.admin.keyring not found'
    assert err.value.status == 1
dataset/ETHPy150Open ceph/ceph-deploy/ceph_deploy/tests/test_cli_admin.py/test_bad_no_key/swapped operands of `in`