def METHOD_NAME(entry_points_mock, warning_mock):
    """Test incorrect add-on name generates a warning."""
    # Setup
    bad_entry_point = Mock()
    bad_entry_point.name = 'bad_base.bad_entry_point'
    entry_points_mock.return_value = [bad_entry_point]
    msg = (
        "Failed to set 'bad_base.bad_entry_point': expected base module to be 'sdv', found "
        "'bad_base'."
    )
    # Run
    _find_addons()
    # Assert
    entry_points_mock.assert_called_once_with(group='sdv_modules')
    warning_mock.assert_called_once_with(msg)