

@staticmethod
def create_one_keypair(attrs=None, no_pri=False):
    'Create a fake keypair\n\n        :param Dictionary attrs:\n            A dictionary with all attributes\n        :return:\n            A FakeResource\n        '
    attrs = (attrs or {
        
    })
    keypair_info = {
        'name': ('keypair-name-' + uuid.uuid4().hex),
        'fingerprint': 'dummy',
        'public_key': 'dummy',
        'user_id': 'user',
    }
    if (not no_pri):
        keypair_info['private_key'] = 'private_key'
    attrs.update(attrs)
    keypair = fakes.FakeResource(info=copy.deepcopy(keypair_info), loaded=True)
    return keypair

dataset/ETHPy150Open dtroyer/python-openstackclient/openstackclient/tests/compute/v2/fakes.py FakeKeypair.create_one_keypair/VarMisuse@84/177 `keypair_info`->`attrs`