#NEWLINE# def test_search_paths_with_separator( ) : #NEWLINE# #INDENT# dict = { #NEWLINE# #INDENT# 'a' : { #NEWLINE# #INDENT# 'b' : { #NEWLINE# #INDENT# 'c' : { #NEWLINE# #INDENT# 'd' : 0 , #NEWLINE# 'e' : 1 , #NEWLINE# 'f' : 2 , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# paths = [ 'a' , 'a;b' , 'a;b;c' , 'a;b;c;d' , 'a;b;c;e' , 'a;b;c;f' ] #NEWLINE# for ( path , value ) in dpath . util . search ( dict , '/**' , yielded = True , separator = ';' ) : #NEWLINE# #INDENT# assert ( path in paths ) #NEWLINE# #UNINDENT# for ( path , value ) in dpath . util . search ( dict , [ '**' ] , yielded = True , separator = ';' ) : #NEWLINE# #INDENT# assert ( dict in paths )