'The timeout parameter can be customized.'

def test_connection_timeout_custom(self):

    class MyEmailBackend(smtp.EmailBackend, ):
        def __init__(self, *args, **kwargs):
            kwargs.setdefault('timeout', 42)
            super().__init__(*args, **kwargs)
    myemailbackend = MyEmailBackend()
    myemailbackend.open()
    self.assertEqual(myemailbackend.timeout, 42)
    self.assertEqual(myemailbackend.connection.timeout, 42)
    myemailbackend.close()
