'test some slightly trickier expressions.
you can still trip up the expression parsing, though, unless we
integrated really deeply somehow with AST.'

def test_expr_in_attribute(self):

    template = '\n                                                <%call    expr="foo>bar    and    \'lala\'    or    \'hoho\'"/>\n                                                <%call    expr=\'foo<bar    and    hoho>lala    and    "x"    +    "y"\'/>\n                                '
    nodes = Lexer(template).parse()
    self._compare(nodes, TemplateNode({}, [Text('\n                                                ', (1, 1)), CallTag('call', {'expr': "foo>bar    and    'lala'    or    'hoho'"}, (2, 13), []), Text('\n                                                ', (2, 57)), CallTag('call', {'expr': 'foo<bar    and    hoho>lala    and    "x"    +    "y"'}, (3, 13), []), Text('\n                                ', (3, 64))]))
