Ϫf BdZddlmZddlmZddlmZGddeZy)z' Tests for L{twisted.python.htmlizer}. )BytesIO)filter)TestCasec eZdZdZddZddZy) FilterTestsz6 Tests for L{twisted.python.htmlizer.filter}. Nctd}t}t|||j|jdy)z If passed an empty input file, L{filter} writes a I{pre} tag containing only an end marker to the output file. s2
Nrr assertEqualgetvalueselfinputoutputs C/usr/lib/python3/dist-packages/twisted/python/test/test_htmlizer.py test_emptyzFilterTests.test_emptys9  uf  OO U r ctd}t}t|||j|jdy)z If passed an input file containing a variable access, L{filter} writes a I{pre} tag containing a I{py-src-variable} span containing the variable. sfoo s
foo
Nr r s r test_variablezFilterTests.test_variables= !uf  OO  E r )returnN)__name__ __module__ __qualname____doc__rrr rrrs   r rN)riortwisted.python.htmlizerrtwisted.trial.unittestrrrr rrs!*+ ( r