def test_oldest_supported_version_warning(
        self, mock_logger, mock_client, mock_db_service
    ):
        """Tests the warning that's generated in the event that
        the feature compatability version is currently the oldest supported
        version.
        """

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

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

        _update_fc_version(mock_client)

        # Check that the warning is triggered for the oldest supported version
        mock_logger.warning.assert_any_call(
            "You are running the oldest supported major version of MongoDB. "
            "Please refer to https://deprecation.voxel51.com "
            "for deprecation notices. "
            "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 feature compatability version is currently the oldest supported
        version.
        
tests/unittests/fcv_tests.py