'Test set availability zone cache key is unicode.'

def test_set_availability_zone_unicode_key(self):

    service = self._create_service_with_topic('network', self.host)
    services = db.service_get_all(self.context)
    az.set_availability_zones(self.context, services)
    self.assertIsInstance(services[0]['host'], six.text_type)
    cached_key = az._make_cache_key(services[0]['host'])
    self.assertIsInstance(cached_key, str)
    self._destroy_service(service)
