diff options
author | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-04-01 17:29:54 +0300 |
---|---|---|
committer | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-04-01 17:29:54 +0300 |
commit | fb2415cc585e4a674a63b8bacf75a3059f27a6a0 (patch) | |
tree | 50a296c2922f340bd9962908b1ff6dd3cecf8143 /contrib/python/MarkupSafe/py3/tests/test_markupsafe.py | |
parent | 3d23aea57287cebf25f327f41cad3624ec33e0c6 (diff) | |
download | ydb-fb2415cc585e4a674a63b8bacf75a3059f27a6a0.tar.gz |
intermediate changes
ref:56a8fc047a6219a99d08b5290f538eadde605502
Diffstat (limited to 'contrib/python/MarkupSafe/py3/tests/test_markupsafe.py')
-rw-r--r-- | contrib/python/MarkupSafe/py3/tests/test_markupsafe.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/contrib/python/MarkupSafe/py3/tests/test_markupsafe.py b/contrib/python/MarkupSafe/py3/tests/test_markupsafe.py index 2f13885406..236f35e7b3 100644 --- a/contrib/python/MarkupSafe/py3/tests/test_markupsafe.py +++ b/contrib/python/MarkupSafe/py3/tests/test_markupsafe.py @@ -69,7 +69,15 @@ def test_dict_interpol(): def test_escaping(escape): assert escape("\"<>&'") == ""<>&'" - assert Markup("<em>Foo & Bar</em>").striptags() == "Foo & Bar" + assert ( + Markup( + "<!-- outer comment -->" + "<em>Foo & Bar" + "<!-- inner comment about <em> -->" + "</em>" + ).striptags() + == "Foo & Bar" + ) def test_unescape(): |