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