#NEWLINE# def test_delete_host_availability_zone( self ) : #NEWLINE# #INDENT# 'Test availability zone could be deleted successfully.' #NEWLINE# service = self . _create_service_with_topic ( 'compute' , self . host ) #NEWLINE# az_name = 'az1' #NEWLINE# agg_az1 = self . _create_az ( 'agg-az1' , az_name ) #NEWLINE# self . _add_to_aggregate ( service , agg_az1 ) #NEWLINE# self . assertEqual ( az_name , az . get_host_availability_zone ( self . context , self . host ) ) #NEWLINE# self . _delete_from_aggregate ( agg_az1 , agg_az1 ) #NEWLINE# self . assertEqual ( self . default_az , az . get_host_availability_zone ( self . context , self . host ) )