'Test availability zone could be deleted successfully.'

def test_delete_host_availability_zone(self):

    service = self._create_service_with_topic('compute', self.host)
    az_name = 'az1'
    agg_az1 = self._create_az('agg-az1', az_name)
    self._add_to_aggregate(service, agg_az1)
    self.assertEqual(az_name, az.get_host_availability_zone(self.context, self.host))
    self._delete_from_aggregate(service, agg_az1)
    self.assertEqual(self.default_az, az.get_host_availability_zone(self.context, self.host))
