The templates are loaded directly, not via a template loader, and should be opened as utf-8 charset as is the default specified on template engines.
(self)
| 449 | ) |
| 450 | |
| 451 | def test_template_encoding(self): |
| 452 | """ |
| 453 | The templates are loaded directly, not via a template loader, and |
| 454 | should be opened as utf-8 charset as is the default specified on |
| 455 | template engines. |
| 456 | """ |
| 457 | with mock.patch.object(DebugPath, "open") as m: |
| 458 | default_urlconf(None) |
| 459 | m.assert_called_once_with(encoding="utf-8") |
| 460 | m.reset_mock() |
| 461 | technical_404_response(mock.MagicMock(), mock.Mock()) |
| 462 | m.assert_called_once_with(encoding="utf-8") |
| 463 | |
| 464 | def test_technical_404_converter_raise_404(self): |
| 465 | with mock.patch.object(IntConverter, "to_python", side_effect=Http404): |
nothing calls this directly
no test coverage detected