#NEWLINE# def test_get_instance_availability_zone_no_host_no_az( self ) : #NEWLINE# #INDENT# 'Test get availability zone if neither host nor az is set.' #NEWLINE# fake_inst = objects . Instance ( host = None , availability_zone = None ) #NEWLINE# result = az . get_instance_availability_zone ( fake_inst . context , fake_inst ) #NEWLINE# self . assertIsNone ( result )