

def test_availability_zone(self):
    agg = aggregate.Aggregate()
    agg.metadata = {
        'availability_zone': 'foo',
    }
    agg.assertEqual('foo', agg.availability_zone)

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