/usr/lib/python3/dist-packages/twisted/python/test
NameSizeModeActions
__pycache__/-0755rm
deprecatedattributes.py5710644editdlrm
modules_helpers.py16050644editdlrm
pullpipe.py12200644editdlrm
test_appdirs.py10810644editdlrm
test_components.py259740644editdlrm
test_constants.py381170644editdlrm
test_deprecate.py389300644editdlrm
test_dist3.py18580644editdlrm
test_fakepwd.py141070644editdlrm
test_htmlizer.py12660644editdlrm
test_inotify.py36390644editdlrm
test_release.py410460644editdlrm
test_runtime.py79260644editdlrm
test_sendmsg.py252330644editdlrm
test_setup.py124130644editdlrm
test_shellcomp.py218090644editdlrm
test_syslog.py49480644editdlrm
test_systemd.py64010644editdlrm
test_textattributes.py7120644editdlrm
test_tzhelper.py39840644editdlrm
test_url.py299280644editdlrm
test_urlpath.py103280644editdlrm
test_util.py364600644editdlrm
test_versions.py54000644editdlrm
test_zippath.py34740644editdlrm
test_zipstream.py123080644editdlrm
_deprecatetests.py.3only18140644editdlrm
__init__.py420644editdlrm
Edit: /usr/lib/python3/dist-packages/twisted/python/test/test_htmlizer.py (1266B)
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for L{twisted.python.htmlizer}. """ from io import BytesIO from twisted.trial.unittest import TestCase from twisted.python.htmlizer import filter class FilterTests(TestCase): """ Tests for L{twisted.python.htmlizer.filter}. """ def test_empty(self): """ If passed an empty input file, L{filter} writes a I{pre} tag containing only an end marker to the output file. """ input = BytesIO(b"") output = BytesIO() filter(input, output) self.assertEqual( output.getvalue(), b'
\n') def test_variable(self): """ 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. """ input = BytesIO(b"foo\n") output = BytesIO() filter(input, output) self.assertEqual( output.getvalue(), b'
foo'
            b'\n'
            b'
\n')