def METHOD_NAME(self, svc, valid_keys, expired_keys):
    keys = svc.get_all_public_jwks()
    expected_keys = [
        {"use": "sig", "kid": key.kid, "key": "value"}
        for key in (valid_keys + expired_keys)
    ]
    assert keys == Any.list.containing(expected_keys).only()