def test_935_delete_all_keys(self): """--->Delete All keys""" print "\n>>>Deleting all Keys" for key in keypairs.list_keys(self.uri): if self.test_config['KEY_NAME'] in key['name']: keypairs.delete_key(self.uri, key['name']) del self.test_config['KEYPAIRS'][key['name']]
def test_935_delete_all_keys(self): """--->Delete All keys""" print "\n>>>Deleting all Keys" for key in keypairs.list_keys(self.uri): if self.test_config['KEY_NAME'] in key['id']: keypairs.delete_key(self.uri, key['id']) del self.test_config['KEYPAIRS'][key['id']]
def test_036_delete_key(self): """Delete Key""" key_id = self.test_config['KEYPAIRS'].keys()[0] print "\n>>>Deleting Key %s" % key_id keypairs.delete_key(self.uri, key_id, cookie=self.cookie) del self.test_config['KEYPAIRS'][key_id]