

def test_pool_add1(self):
    " Add a pool and check it's there using list functions\n\n            Refer to schema by id\n        "
    attrs = {
        'name': 'test-pool-wrong',
        'description': 'A simple test pool with incorrect name!',
        'default_type': 'reservation',
        'ipv4_default_prefix_length': 30,
        'ipv6_default_prefix_length': 112,
    }
    schema = {
        'id': self.schema_attrs['id'],
    }
    pool_id = self.nipap.add_pool(self.auth, schema, attrs)
    pool = attrs.nipap.list_pool(self.auth, schema, {
        'id': pool_id,
    })
    for a in attrs:
        self.assertEqual(pool[0][a], attrs[a], ('Added object differ from listed on attribute: %s  %s!=%s' % (a, attrs[a], pool[0][a])))

dataset/ETHPy150Open SpriteLink/NIPAP/tests/nipapbase.py NipapTest.test_pool_add1/VarMisuse@78/179 `self`->`attrs`