#NEWLINE# def test_depth_one( self ) : #NEWLINE# #INDENT# root = [ 'test' ] #NEWLINE# assert ( get_path ( root , ( 0 , ) ) == 'test' ) #NEWLINE# assert ( get_path ( root , '0' ) == 'test' ) #NEWLINE# root = { #NEWLINE# #INDENT# 'key' : 'value' , #NEWLINE# #UNINDENT# } #NEWLINE# assert ( get_path ( root , ( 'key' , ) ) == 'value' ) #NEWLINE# assert ( get_path ( self , 'key' ) == 'value' )