#NEWLINE# def test_notify_port_status_all_values( self ) : #NEWLINE# #INDENT# states = [ n_const . PORT_STATUS_ACTIVE , n_const . PORT_STATUS_DOWN , n_const . PORT_STATUS_ERROR , n_const . PORT_STATUS_BUILD , sql_attr . NO_VALUE ] #NEWLINE# device_id = '32102d7b-1cf4-404d-b50a-97aae1f55f87' #NEWLINE# for previous_port_status in states : #NEWLINE# #INDENT# for current_port_status in states : #NEWLINE# #INDENT# port = models_v2 . Port ( id = 'port-uuid' , device_id = device_id , device_owner = DEVICE_OWNER_COMPUTE , status = current_port_status ) #NEWLINE# self . _record_port_status_changed_helper ( current_port_status , previous_port_status , port )