```python
self.req.amo_user = mock.Mock(id=42, is_anonymous=lambda x: anon)