

def test_destroy(self):
    self.mox.StubOutWithMock(db, 'aggregate_delete')
    db.aggregate_delete(self.context, 123)
    self.mox.ReplayAll()
    agg = aggregate.Aggregate(context=self.context)
    self.id = 123
    agg.destroy()

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/objects/test_aggregate.py _TestAggregateObject.test_destroy/VarMisuse@53/65 `agg`->`self`