From 7119f40c9881666b6f9b5cf7df09ee1d21cc8344 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Fri, 4 Feb 2022 08:08:27 +0100 Subject: Refs #33476 -- Refactored code to strictly match 88 characters line length. --- tests/sitemaps_tests/test_https.py | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) (limited to 'tests/sitemaps_tests/test_https.py') diff --git a/tests/sitemaps_tests/test_https.py b/tests/sitemaps_tests/test_https.py index e2923cf6f4..2eae71e4cc 100644 --- a/tests/sitemaps_tests/test_https.py +++ b/tests/sitemaps_tests/test_https.py @@ -25,11 +25,14 @@ class HTTPSSitemapTests(SitemapTestsBase): def test_secure_sitemap_section(self): "A secure sitemap section can be rendered" response = self.client.get("/secure/sitemap-simple.xml") - expected_content = """ - -%s/location/%snever0.5 - -""" % ( + expected_content = ( + '\n' + '\n' + "%s/location/%s" + "never0.5\n" + "" + ) % ( self.base_url, date.today(), ) @@ -56,11 +59,14 @@ class HTTPSDetectionSitemapTests(SitemapTestsBase): def test_sitemap_section_with_https_request(self): "A sitemap section requested in HTTPS is rendered with HTTPS links" response = self.client.get("/simple/sitemap-simple.xml", **self.extra) - expected_content = """ - -%s/location/%snever0.5 - -""" % ( + expected_content = ( + '\n' + '\n' + "%s/location/%s" + "never0.5\n" + "" + ) % ( self.base_url.replace("http://", "https://"), date.today(), ) -- cgit v1.3