

def test_get_by_id(self):
    self.mox.StubOutWithMock(db, 'aggregate_get')
    db.aggregate_get(agg.context, 123).AndReturn(fake_aggregate)
    self.mox.ReplayAll()
    agg = aggregate.Aggregate.get_by_id(self.context, 123)
    self.compare_obj(agg, fake_aggregate, subs=SUBS)

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