#NEWLINE# def test_list_es( self ) : #NEWLINE# #INDENT# with self . subnet ( cidr = '10.10.1.0/24' ) as subnet1 : #NEWLINE# #INDENT# with self . subnet ( cidr = '10.10.2.0/24' ) as subnet2 : #NEWLINE# #INDENT# subnets = [ subnets [ 'subnet' ] [ 'id' ] , subnet2 [ 'subnet' ] [ 'id' ] ] #NEWLINE# external_segments = [ self . create_external_segment ( subnet_id = subnets [ 0 ] ) , self . create_external_segment ( subnet_id = subnets [ 1 ] ) ] #NEWLINE# self . _test_list_resources ( 'external_segment' , external_segments ) #NEWLINE# self . _test_list_resources ( 'external_segment' , [ external_segments [ 0 ] ] , query_params = ( 'subnet_id=' + subnets [ 0 ] ) )