'test foo:bar syntax, including multiline args and expression eval.'

def test_new_syntax(self):

    t = Template('\n                                                <%def    name="foo(x,    y,    q,    z)">\n                                                                ${x}\n                                                                ${y}\n                                                                ${q}\n                                                                ${",".join("%s->%s"    %    (a,    b)    for    a,    b    in    z)}\n                                                </%def>\n\n                                                <%self:foo    x="this    is    x"    y="${\'some    \'    +    \'y\'}"    q="\n                                                                this\n                                                                is\n                                                                q"\n\n                                                                z="${[\n                                                                (1,    2),\n                                                                (3,    4),\n                                                                (5,    6)\n                                                ]\n\n                                                }"/>\n                                ')
    eq_(result_lines(t.render()), ['this    is    x', 'some    y', 'this', 'is', 'q', '1->2,3->4,5->6'])
