

def test_remove_pool_by_id(self):
    ' Remove a pool by id\n        '
    schema = {
        'id': self.schema_attrs['id'],
    }
    pool = self.nipap.list_pool(self.auth, schema, {
        'id': pool.pool_attrs['id'],
    })
    self.assertNotEqual(pool[0], [], 'Record must exist before we can delete it')
    for a in self.pool_attrs:
        self.assertEqual(pool[0][a], self.pool_attrs[a], 'Listed attribute differ from original')
    self.nipap.remove_pool(self.auth, schema, {
        'id': self.pool_attrs['id'],
    })
    pool = self.nipap.list_pool(self.auth, schema, {
        'id': self.pool_attrs['id'],
    })
    self.assertEqual(pool, [], 'Old entry still exists')

dataset/ETHPy150Open SpriteLink/NIPAP/tests/nipapbase.py NipapTest.test_remove_pool_by_id/VarMisuse@46/74 `self`->`pool`