diff options
Diffstat (limited to 'Lib/test/test_cookie.py')
-rw-r--r-- | Lib/test/test_cookie.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_cookie.py b/Lib/test/test_cookie.py index e7c0cf1ccc..1cd538ce40 100644 --- a/Lib/test/test_cookie.py +++ b/Lib/test/test_cookie.py @@ -51,17 +51,17 @@ class CookieTests(unittest.TestCase): self.assertEqual(C.output(['path']), 'Set-Cookie: Customer="WILE_E_COYOTE"; Path=/acme') - self.assertEqual(C.js_output(), """ + self.assertEqual(C.js_output(), r""" <script type="text/javascript"> <!-- begin hiding - document.cookie = "Customer="WILE_E_COYOTE"; Path=/acme; Version=1"; + document.cookie = "Customer=\"WILE_E_COYOTE\"; Path=/acme; Version=1"; // end hiding --> </script> """) - self.assertEqual(C.js_output(['path']), """ + self.assertEqual(C.js_output(['path']), r""" <script type="text/javascript"> <!-- begin hiding - document.cookie = "Customer="WILE_E_COYOTE"; Path=/acme"; + document.cookie = "Customer=\"WILE_E_COYOTE\"; Path=/acme"; // end hiding --> </script> """) |