<s> from StringIO import StringIO <EOL> from Pyblosxom . tests import UnitTestBase <EOL> from Pyblosxom . pyblosxom import Request <EOL> from Pyblosxom . renderers import blosxom <EOL> req = Request ( { } , { } , { } ) <EOL> class TestBlosxomRenderer ( UnitTestBase ) : <EOL> def test_dollar_parse_problem ( self ) : <EOL> output = StringIO ( ) <EOL> renderer = blosxom . BlosxomRenderer ( req , output ) <EOL> renderer . flavour = { "<STR_LIT>" : "<STR_LIT>" } <EOL> renderer . _run_callback = lambda c , args : args <EOL> entry = { "<STR_LIT:body>" : r'<STR_LIT>' } <EOL> self . eq_ ( renderer . render_template ( entry , "<STR_LIT>" ) , <EOL> entry [ "<STR_LIT:body>" ] ) <EOL> def test_date_head ( self ) : <EOL> output = StringIO ( ) <EOL> renderer = blosxom . BlosxomRenderer ( req , output ) <EOL> renderer . flavour = { "<STR_LIT>" : "<STR_LIT>" } <EOL> renderer . _run_callback = lambda c , args : args <EOL> vardict = { <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT:date>" : "<STR_LIT>" <EOL> } <EOL> self . eq_ ( renderer . render_template ( vardict , "<STR_LIT>" ) , <EOL> "<STR_LIT>" ) </s>
