Exemplo n.º 1
0
def test_objects_name_to_path_dots():
    result = Objects.name_to_path('name.dot')
    fragment = Tree('path_fragment', [Token('NAME', 'dot')])
    children = [Token('NAME', 'name'), fragment]
    assert result == Tree('path', children)
Exemplo n.º 2
0
def test_objects_name_to_path_dots():
    result = Objects.name_to_path("name.dot")
    fragment = Tree("path_fragment", [Token("NAME", "dot")])
    children = [Token("NAME", "name"), fragment]
    assert result == Tree("path", children)
Exemplo n.º 3
0
def test_objects_name_to_path():
    result = Objects.name_to_path('name')
    assert result == Tree('path', [Token('NAME', 'name')])
Exemplo n.º 4
0
def test_objects_name_to_path():
    result = Objects.name_to_path("name")
    assert result == Tree("path", [Token("NAME", "name")])