diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2026-01-18 21:26:56 +0100 |
|---|---|---|
| committer | Natalia <124304+nessita@users.noreply.github.com> | 2026-02-24 20:36:09 -0300 |
| commit | 090f1da56e663e9f840e307e73b5cf011cb7b061 (patch) | |
| tree | 2283f72766c60c9462aa718fbe039ffdd3478ad3 /tests/test_utils/tests.py | |
| parent | 5f8b8e96a7a43d9e95c2deda3cf0c2855d976c64 (diff) | |
[6.0.x] Applied Black's 2026 stable style.
https://github.com/psf/black/releases/tag/26.1.0
Backport of 6cff02078799b7c683a0d39630d49ab4fe532e7c from main.
Diffstat (limited to 'tests/test_utils/tests.py')
| -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 70cca3d441..bf332e064a 100644 --- a/tests/test_utils/tests.py +++ b/tests/test_utils/tests.py @@ -709,20 +709,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>") @@ -1021,12 +1017,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">') @@ -1223,9 +1217,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) |
