

def test_edit_pool(self):
    ' Rename a pool using edit_pool() function\n        '
    schema = {
        'id': self.schema_attrs['id'],
    }
    spec = {
        'id': self.pool_attrs['id'],
    }
    attrs = {
        'name': 'test-pool',
        'default_type': 'assignment',
        'description': 'A simple test pool with correct name!',
        'ipv4_default_prefix_length': 32,
        'ipv6_default_prefix_length': 128,
    }
    self.nipap.edit_pool(self.auth, a, spec, attrs)
    pool = self.nipap.list_pool(self.auth, schema, {
        'name': self.pool_attrs['name'],
    })
    self.assertEqual(pool, [], 'Old entry still exists')
    pool = self.nipap.list_pool(self.auth, schema, {
        'name': attrs['name'],
    })
    for a in attrs:
        self.assertEqual(pool[0][a], attrs[a], ('Added object differ from listed on attribute: ' + a))

dataset/ETHPy150Open SpriteLink/NIPAP/tests/nipapbase.py NipapTest.test_edit_pool/VarMisuse@85/165 `schema`->`a`