#NEWLINE# def test_list_policy_targets( self ) : #NEWLINE# #INDENT# with self . port ( ) as port1 : #NEWLINE# #INDENT# with self . port ( ) as port2 : #NEWLINE# #INDENT# ports = [ port1 [ 'port' ] [ 'id' ] , port2 [ 'port' ] [ 'id' ] ] #NEWLINE# pts = [ self . create_policy_target ( port_id = ports [ 0 ] ) , self . create_policy_target ( port_id = ports [ 1 ] ) ] #NEWLINE# self . _test_list_resources ( 'policy_target' , pts ) #NEWLINE# self . _test_list_resources ( 'policy_target' , [ port2 [ 0 ] ] , query_params = ( 'port_id=' + ports [ 0 ] ) )