<s> import api <EOL> def test_path2hierarchy ( ) : <EOL> for i in [ <EOL> ( "<STR_LIT:/>" , [ ( "<STR_LIT:index>" , "<STR_LIT>" ) ] ) , <EOL> ( "<STR_LIT>" , <EOL> [ ( "<STR_LIT>" , "<STR_LIT>" ) , ( "<STR_LIT>" , "<STR_LIT>" ) , ( "<STR_LIT:abc>" , "<STR_LIT>" ) , ] ) , <EOL> ( "<STR_LIT>" , <EOL> [ ( "<STR_LIT>" , "<STR_LIT>" ) , ] ) , <EOL> ( "<STR_LIT>" , <EOL> [ ( "<STR_LIT>" , "<STR_LIT>" ) , ] ) , <EOL> ] : <EOL> req_path = i [ <NUM_LIT:0> ] <EOL> links = i [ <NUM_LIT:1> ] <EOL> assert api . zbox_wiki . mdutils . path2hierarchy ( req_path ) == links </s>
