From e25bdba3a3a53b09be5269d8b065c13b73ab55c3 Mon Sep 17 00:00:00 2001 From: yum Date: Sun, 1 Jan 2023 21:05:27 -0800 Subject: Embed git in package package.ps1 fetches PortableGit and embeds it in the package. This eliminates all but one runtime dependency (MSVC++ Redistributable). * Move Python into a new FOSS folder. --- .../future-0.18.2/tests/test_future/test_html.py | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 FOSS/Python/Dependencies/future-0.18.2/tests/test_future/test_html.py (limited to 'FOSS/Python/Dependencies/future-0.18.2/tests/test_future/test_html.py') diff --git a/FOSS/Python/Dependencies/future-0.18.2/tests/test_future/test_html.py b/FOSS/Python/Dependencies/future-0.18.2/tests/test_future/test_html.py new file mode 100644 index 0000000..251a530 --- /dev/null +++ b/FOSS/Python/Dependencies/future-0.18.2/tests/test_future/test_html.py @@ -0,0 +1,27 @@ +""" +Tests for the html module functions. + +Adapted for the python-future module from the Python 3.3 standard library tests. +""" + +from __future__ import unicode_literals +from future import standard_library + +with standard_library.hooks(): + import html + +from future.tests.base import unittest + + +class HtmlTests(unittest.TestCase): + def test_escape(self): + self.assertEqual( + html.escape('\'\''), + ''<script>"&foo;"</script>'') + self.assertEqual( + html.escape('\'\'', False), + '\'<script>"&foo;"</script>\'') + + +if __name__ == '__main__': + unittest.main() -- cgit v1.2.3