'Test get availability zone from instance if host is None.'

def test_get_instance_availability_zone_no_host(self):

    fake_inst = objects.Instance(host=None, availability_zone='inst-az')
    result = az.get_instance_availability_zone(self.context, fake_inst)
    self.assertEqual('inst-az', result)
