Mercurial > cpython-lru_cache-weakref
view Lib/test/test_html.py @ 84007:dbfbdf2b5c19 3.3
Fix #17967: For ftp urls CWD to target instead of hopping to each directory
towards target. This fixes a bug where target is accessible, but parent
directories are restricted.
| author | Senthil Kumaran <senthil@uthcode.com> |
|---|---|
| date | Sat, 01 Jun 2013 08:27:06 -0700 |
| parents | 5633af590057 |
| children | 7b9235852b3b |
line wrap: on
line source
""" Tests for the html module functions. """ import html import unittest from test.support import run_unittest class HtmlTests(unittest.TestCase): def test_escape(self): self.assertEqual( html.escape('\'<script>"&foo;"</script>\''), ''<script>"&foo;"</script>'') self.assertEqual( html.escape('\'<script>"&foo;"</script>\'', False), '\'<script>"&foo;"</script>\'') def test_main(): run_unittest(HtmlTests) if __name__ == '__main__': test_main()
