# AssertionError: Expected call: my_func(1, 2)
Actual call: my_func(1, 2, 3)

- **ID:** `python/unittest-mock-assert-called-with-any`
- **Domain:** python
- **Category:** runtime_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The mock was called with additional arguments not specified in assert_called_with.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.x | active | — | — |

## Workarounds

1. **** (90% success)
   ```
   mock_func.assert_called_with(1, 2, mock.ANY)
   ```
2. **** (95% success)
   ```
   print(mock_func.call_args) to see the actual arguments, then update the assertion or fix the code to call with the correct arguments.
   ```

## Dead Ends

- **** — This may pass but does not verify that the function was called with the correct arguments; it just matches the current behavior. (70% fail)
- **** — This only checks the call count, not the arguments. (80% fail)
