Disabling append slash functionality should leave slashless URLs alone.
(self)
| 136 | |
| 137 | @override_settings(APPEND_SLASH=False) |
| 138 | def test_append_slash_disabled(self): |
| 139 | """ |
| 140 | Disabling append slash functionality should leave slashless URLs alone. |
| 141 | """ |
| 142 | request = self.rf.get("/slash") |
| 143 | self.assertEqual(CommonMiddleware(get_response_404)(request).status_code, 404) |
| 144 | |
| 145 | @override_settings(APPEND_SLASH=True) |
| 146 | def test_append_slash_opt_out(self): |
nothing calls this directly
no test coverage detected