#NEWLINE# def test_iterate_flattened_separately( ) : #NEWLINE# #INDENT# d = { #NEWLINE# #INDENT# 'a1' : 1 , #NEWLINE# 'b2' : { #NEWLINE# #INDENT# 'foo' : 'bar' , #NEWLINE# #UNINDENT# } , #NEWLINE# 'c1' : 'f' , #NEWLINE# 'd1' : [ 1 , 2 , 3 ] , #NEWLINE# 'e2' : { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# res = list ( iterate_flattened_separately ( d ) ) #NEWLINE# assert ( res == [ ( 'a1' , 1 ) , ( 'c1' , 'f' ) , ( 'd1' , [ 1 , 2 , 3 ] ) , ( 'e2' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) , ( 'b2' , PATHCHANGE ) , ( 'b2.foo' , 'bar' ) ] )