]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
web_test: Remove obsolete compatibility with python 3.4
authorBen Darnell <ben@bendarnell.com>
Thu, 11 Jul 2024 19:46:50 +0000 (15:46 -0400)
committerBen Darnell <ben@bendarnell.com>
Thu, 11 Jul 2024 19:46:50 +0000 (15:46 -0400)
tornado/test/web_test.py

index 7e1278e6c32e933bcfb3c061d58e4d1066e2eefa..d43ea78dd2edc8baac3203c7beb86e87a41831ca 100644 (file)
@@ -417,12 +417,10 @@ class CookieTest(WebTestCase):
     def test_set_cookie_false_flags(self):
         response = self.fetch("/set_falsy_flags")
         headers = sorted(response.headers.get_list("Set-Cookie"))
-        # The secure and httponly headers are capitalized in py35 and
-        # lowercase in older versions.
-        self.assertEqual(headers[0].lower(), "a=1; path=/; secure")
-        self.assertEqual(headers[1].lower(), "b=1; path=/")
-        self.assertEqual(headers[2].lower(), "c=1; httponly; path=/")
-        self.assertEqual(headers[3].lower(), "d=1; path=/")
+        self.assertEqual(headers[0], "a=1; Path=/; Secure")
+        self.assertEqual(headers[1], "b=1; Path=/")
+        self.assertEqual(headers[2], "c=1; HttpOnly; Path=/")
+        self.assertEqual(headers[3], "d=1; Path=/")
 
     def test_set_cookie_deprecated(self):
         with ignore_deprecation():