From 1b46974d54a791cb3a16e3f9b0ba38968540a0a8 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Sun, 1 Dec 2024 21:29:53 -0600 Subject: [PATCH] mock load_cert_chain --- kmip/tests/unit/services/server/test_server.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kmip/tests/unit/services/server/test_server.py b/kmip/tests/unit/services/server/test_server.py index 0384e8fc..86044f60 100644 --- a/kmip/tests/unit/services/server/test_server.py +++ b/kmip/tests/unit/services/server/test_server.py @@ -194,6 +194,7 @@ def test_start(self, a_mock = mock.MagicMock() b_mock = mock.MagicMock() + c_mock = mock.MagicMock() s = server.KmipServer( hostname='127.0.0.1', @@ -213,6 +214,7 @@ def test_start(self, with mock.patch('ssl.SSLContext') as ssl_mock: socket_mock.return_value = a_mock ssl_mock.return_value.wrap_socket.return_value = b_mock + ssl_mock.return_value.load_cert_chain = c_mock manager_mock.assert_not_called() monitor_mock.assert_not_called()