Actually, assert_warns_message supports checking substrings in the warning message, e.g.,:

```
# Check that we got increasing=False and CI warning
is_increasing = assert_warns_message(UserWarning, "interval", 
                                         check_increasing,
                                         x, y)
```