def one_key_pair(context, user_id, name):
    if (name == 'key'):
        return dict(test_keypair.fake_keypair, name='key', public_key='public_key', **kwargs)
    else:
        raise exc.KeypairNotFound(user_id=user_id, name=name)
def one_key_pair(context, user_id, name):
    if (name == 'key'):
        return dict(test_keypair.fake_keypair, name='key', public_key='public_key', **kwargs)
    else:
        raise exc.KeypairNotFound(user_id=user_id, name=name)