> ## Documentation Index
> Fetch the complete documentation index at: https://www.getmaxim.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# TestAnthropic

> Test Anthropic functionality for Tests integration.

[View module source on GitHub](https://github.com/maximhq/maxim-py/blob/main/maxim/tests/test_anthropic.py)

## [TestAnthropicWithMockWriter](/sdk/python/references/tests/test_anthropic)

```python theme={null}
class TestAnthropicWithMockWriter(unittest.TestCase)
```

Test class demonstrating how to use [MockLogWriter](/sdk/python/references/tests/mock_writer) for verification.

#### test\_messages\_with\_mock\_writer\_verification

```python theme={null}
def test_messages_with_mock_writer_verification()
```

Test that demonstrates verifying logged commands with mock writer.

#### test\_stream\_with\_mock\_writer\_verification

```python theme={null}
def test_stream_with_mock_writer_verification()
```

Test streaming with mock writer verification.
