# AssertionError: expected call not found.
Expected: send_email('test@example.com')
Actual: send_email('test@example.com', subject='Hello')

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

## Root Cause

assert_called_with requires an exact match of arguments. If the actual call includes additional keyword arguments, the assertion fails.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.8 | active | — | — |
| 3.12 | active | — | — |

## Workarounds

1. **** (95% success)
   ```
   from unittest.mock import ANY
mock.assert_called_with('test@example.com', subject=ANY)
   ```
2. **** (90% success)
   ```
   mock.assert_called_with('test@example.com', subject='Hello')
   ```

## Dead Ends

- **** — This only checks the call count, not the arguments. (80% fail)
- **** — The extra arguments may be required for the function. (70% fail)
