(self)
| 28 | request.get_signed_cookie("a", salt="two") |
| 29 | |
| 30 | def test_detects_tampering(self): |
| 31 | response = HttpResponse() |
| 32 | response.set_signed_cookie("c", "hello") |
| 33 | request = HttpRequest() |
| 34 | request.COOKIES["c"] = response.cookies["c"].value[:-2] + "$$" |
| 35 | with self.assertRaises(signing.BadSignature): |
| 36 | request.get_signed_cookie("c") |
| 37 | |
| 38 | def test_default_argument_suppresses_exceptions(self): |
| 39 | response = HttpResponse() |
nothing calls this directly
no test coverage detected