diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2026-01-18 21:26:56 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-18 21:26:56 +0100 |
| commit | 6cff02078799b7c683a0d39630d49ab4fe532e7c (patch) | |
| tree | 9813fc94d952942117b23d61231b9e89a8cab1c2 /tests/test_utils | |
| parent | 0d31ca98830542088299d2078402891d08cc3a65 (diff) | |
Applied Black's 2026 stable style.
https://github.com/psf/black/releases/tag/26.1.0
Diffstat (limited to 'tests/test_utils')
| -rw-r--r-- | tests/test_utils/tests.py | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/tests/test_utils/tests.py b/tests/test_utils/tests.py index 92f13ab81c..22b509b6b3 100644 --- a/tests/test_utils/tests.py +++ b/tests/test_utils/tests.py @@ -710,20 +710,16 @@ class HTMLEqualTests(SimpleTestCase): def test_parse_html_in_script(self): parse_html('<script>var a = "<p" + ">";</script>') - parse_html( - """ + parse_html(""" <script> var js_sha_link='<p>***</p>'; </script> - """ - ) + """) # script content will be parsed to text - dom = parse_html( - """ + dom = parse_html(""" <script><p>foo</p> '</scr'+'ipt>' <span>bar</span></script> - """ - ) + """) self.assertEqual(len(dom.children), 1) self.assertEqual(dom.children[0], "<p>foo</p> '</scr'+'ipt>' <span>bar</span>") @@ -1022,12 +1018,10 @@ class HTMLEqualTests(SimpleTestCase): self.assertHTMLEqual("<p><foo></p>", "<p><foo></p>") def test_contains_html(self): - response = HttpResponse( - """<body> + response = HttpResponse("""<body> This is a form: <form method="get"> <input type="text" name="Hello" /> - </form></body>""" - ) + </form></body>""") self.assertNotContains(response, "<input name='Hello' type='text'>") self.assertContains(response, '<form method="get">') @@ -1224,9 +1218,7 @@ class XMLEqualTests(SimpleTestCase): - <elem attr1='a' /> + <elem attr2='b' attr1='a' /> ? ++++++++++ -""".format( - xml1=repr(xml1), xml2=repr(xml2) - ) +""".format(xml1=repr(xml1), xml2=repr(xml2)) with self.assertRaisesMessage(AssertionError, msg): self.assertXMLEqual(xml1, xml2) |
