'Test get right availability zone by given host.'

def test_get_host_availability_zone(self):

    self.assertEqual(self.default_az, az.get_host_availability_zone(self.context, self.host))
    service = self._create_service_with_topic('compute', self.host)
    self._add_to_aggregate(service, self.agg)
    self.assertEqual(self.availability_zone, az.get_host_availability_zone(self.context, self.host))
