@@ -644,10 +644,10 @@ def test_await_ipv4(mock_socket):
644644
645645
646646def test_exception_from_blocking_ssl_socket (mock_socket , mocker ):
647- """SSL sockets behave slightly different than regular sockets in
648- non-blocking mode. They won't raise BlockingIOError but SSLWantWriteError
647+ """SSL sockets behave slightly different than regular sockets in
648+ non-blocking mode. They won't raise BlockingIOError but SSLWantWriteError
649649 or SSLWantReadError instead.
650-
650+
651651 See: https://docs.python.org/3/library/ssl.html#notes-on-non-blocking-sockets
652652 """
653653 sut = DoIPClient (test_ip , test_logical_address )
@@ -664,13 +664,17 @@ def test_exception_from_blocking_ssl_socket(mock_socket, mocker):
664664def test_use_secure_uses_default_ssl_context (mock_socket , mocker ):
665665 """Wrap socket with default SSL-context when use_secure=True"""
666666 mocked_context = mocker .patch .object (ssl , "SSLContext" , autospec = True )
667- sut = DoIPClient (test_ip , test_logical_address , use_secure = True , activation_type = None )
667+ sut = DoIPClient (
668+ test_ip , test_logical_address , use_secure = True , activation_type = None
669+ )
668670 mocked_wrap_socket = mocked_context .return_value .wrap_socket
669671 mocked_wrap_socket .assert_called_once_with (mock_socket )
670672
671673
672674def test_use_secure_with_external_ssl_context (mock_socket , mocker ):
673675 """Wrap socket with user provided SSL-context when use_secure=ssl_context"""
674676 mocked_context = mocker .patch .object (ssl , "SSLContext" , autospec = True )
675- sut = DoIPClient (test_ip , test_logical_address , use_secure = mocked_context , activation_type = None )
677+ sut = DoIPClient (
678+ test_ip , test_logical_address , use_secure = mocked_context , activation_type = None
679+ )
676680 mocked_context .wrap_socket .assert_called_once_with (mock_socket )
0 commit comments