def test_connection_error(self, mock_client, mock_db_service):
        """Tests that if we get a ServerSelectionTimeoutError, a
        ConnectionError bubbles up to the client in accordance with
        the other validation functions.
        """

        # Simulate a connection error by raising ServerSelectionTimeoutError
        mock_client.admin.command.side_effect = ServerSelectionTimeoutError(
            "Could not connect"
        )

        with self.assertRaises(ConnectionError):
            _update_fc_version(mock_client)
Tests that if we get a ServerSelectionTimeoutError, a
        ConnectionError bubbles up to the client in accordance with
        the other validation functions.
        
tests/unittests/fcv_tests.py