Views marked with @no_append_slash should be left alone.
(self)
| 144 | |
| 145 | @override_settings(APPEND_SLASH=True) |
| 146 | def test_append_slash_opt_out(self): |
| 147 | """ |
| 148 | Views marked with @no_append_slash should be left alone. |
| 149 | """ |
| 150 | request = self.rf.get("/sensitive_fbv") |
| 151 | self.assertEqual(CommonMiddleware(get_response_404)(request).status_code, 404) |
| 152 | |
| 153 | request = self.rf.get("/sensitive_cbv") |
| 154 | self.assertEqual(CommonMiddleware(get_response_404)(request).status_code, 404) |
| 155 | |
| 156 | @override_settings(APPEND_SLASH=True) |
| 157 | def test_append_slash_quoted(self): |
nothing calls this directly
no test coverage detected