def test_build_keyjar():
    keys = [
        {"type": "RSA", "use": ["enc", "sig"]},
        {"type": "EC", "crv": "P-256", "use": ["sig"]},
    ]

    jwks, keyjar, kidd = build_keyjar(keys)
    for key in jwks["keys"]:
        assert key not in "d"  # the JWKS shouldn't contain the private part of the keys

    assert len(keyjar[""]) == 2

    assert "RSA" in kidd["enc"]
    assert "RSA" in kidd["sig"]
    assert "EC" in kidd["sig"]
dataset/ETHPy150Open rohe/pyoidc/tests/test_keyio.py/test_build_keyjar/swapped operands of `not in`