%def one()
${two()}
%end
%def two()
${three()}
%end
%def three()
%py raise ValueError('Test error')
%end
${one()}
