

def test_path():
    schema = Dict.named('root').of(String.named('element'), Dict.named('dict').of(String.named('dict_element')))
    element = schema()
    eq_(list(element.el(['dict', 'dict_element']).path), [element, element['dict'], element['dict']['dict_element']])

dataset/ETHPy150Open jek/flatland/tests/test_schema.py test_path/original