'Test get availability zone if neither host nor az is set.'

def test_get_instance_availability_zone_no_host_no_az(self):

    fake_inst = objects.Instance(host=None, availability_zone=None)
    result = az.get_instance_availability_zone(self.context, fake_inst)
    self.assertIsNone(result)
