def test_version_diff_warning(
        self, mock_logger, mock_client, mock_db_service
    ):
        """Tests the warning that's generated in the event that
        the FO DB is more than 1 version outside of our expected
        parameters.
        """

        server_version = Version(f"{foc.MONGODB_MIN_VERSION.major + 2}.0.0")
        fc_version = Version(f"{foc.MONGODB_MIN_VERSION.major}.0.0")

        mock_admin = MagicMock()
        mock_client.admin = mock_admin
        mock_client.server_info.return_value = {"version": str(server_version)}

        mock_admin.command.return_value = {
            "featureCompatibilityVersion": {"version": str(fc_version)}
        }

        _update_fc_version(mock_client)

        # Check that the warning is triggered due to a large version difference
        mock_logger.warning.assert_any_call(
            "Your MongoDB server version is more than 1 "
            "ahead of your database's feature compatibility version. "
            "Please manually update your database's feature "
            "compatibility version. "
            "You can suppress this exception by setting your "
            "`database_validation` config parameter to `False`. See "
            "https://docs.voxel51.com/user_guide/config.html#configuring-a-mongodb-connection "
            "for more information"
        )
Tests the warning that's generated in the event that
        the FO DB is more than 1 version outside of our expected
        parameters.
        
tests/unittests/fcv_tests.py