def test_check_cert_localhost():
    out = check_cert(os.path.join(DEFAULT_CERTS_DIR, 'localhost.crt'))
    assert out in 'localhost'
dataset/ETHPy150Open openpermissions/koi/tests/unit/ssl/test_keygen.py/test_check_cert_localhost/swapped operands of `in`