(cls)
| 1130 | class SMTPBackendStoppedServerTests(SMTPBackendTestsBase): |
| 1131 | @classmethod |
| 1132 | def setUpClass(cls): |
| 1133 | super().setUpClass() |
| 1134 | # RemovedInDjango70Warning: alias argument can be removed (needed |
| 1135 | # during mail.mailers transition to prevent compatibility mode). |
| 1136 | cls.backend = smtp.EmailBackend( |
| 1137 | alias="test_alias", |
| 1138 | host=cls.smtp_controller.hostname, |
| 1139 | port=cls.smtp_controller.port, |
| 1140 | ) |
| 1141 | cls.smtp_controller.stop() |
| 1142 | |
| 1143 | @classmethod |
| 1144 | def stop_smtp(cls): |
nothing calls this directly
no test coverage detected