Ejemplo n.º 1
0
def test_parse_partial():
    node = Node("$", "123")
    given = [node, node]
    with pytest.raises(ValueError):
        parse(term("$"), given)
Ejemplo n.º 2
0
def test_parse():
    node = Node("$", "123")
    given = [node]
    after = [node]
    assert parse(term("$"), given) == after