This is a nitpick but could you make that assertion instead:
```python
assert " @" % notify in ev['msg_text']
```