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_030_list_keys(self): """ -->List Keys Sends a request to our API to return all our added keys """ print "\n>>>List of Keys:" keys = keypairs.list_keys(self.uri, cookie=self.cookie) or {} if keys == {}: self.test_config['KEYPAIRS'] = {} else: for key in keys: print key['name'] self.test_config['KEYPAIRS'][key['name']] = key
def test_030_list_keys(self): """ -->List Keys Sends a request to our API to return all our added keys """ print "\n>>>List of Keys:" keys = keypairs.list_keys(self.uri, cookie=self.cookie) or {} if keys == {}: self.test_config['KEYPAIRS'] = {} else: for key in keys: print key['id'] self.test_config['KEYPAIRS'][key['id']] = key