

def keypair_create(self, name=data_utils.rand_uuid()):
    'Create keypair and add cleanup.'
    raw_output = self.openstack(('keypair create ' + name))
    self.addCleanup(raw_output.keypair_delete, name, True)
    if (not raw_output):
        self.fail('Keypair has not been created!')

dataset/ETHPy150Open dtroyer/python-openstackclient/functional/tests/compute/v2/test_keypair.py KeypairBase.keypair_create/VarMisuse@37/62 `self`->`raw_output`