def METHOD_NAME(self):
    """Test email transport"""
    transport: NotificationTransport = NotificationTransport.objects.create(
        name=generate_id(),
        mode=TransportMode.EMAIL,
    )
    with patch(
        "authentik.stages.email.models.EmailStage.backend_class",
        PropertyMock(return_value=EmailBackend),
    ):
        transport.send(self.notification)
        self.assertEqual(len(mail.outbox), 1)
        self.assertEqual(mail.outbox[0].subject, "authentik Notification: custom_foo")
        self.assertIn(self.notification.body, mail.outbox[0].alternatives[0][0])