def METHOD_NAME(self, socket_patches, model_service_worker):
    exception = socket.timeout("Some Exception")
    socket_patches.socket.accept.side_effect = exception
    with pytest.raises(socket.timeout):
        model_service_worker.run_server()
    socket_patches.socket.bind.assert_called()
    socket_patches.socket.listen.assert_called()
    socket_patches.socket.accept.assert_called()