I usually like to check the message from the exception, i.e.:

```
with pytest.raises(Exception) as exc:
    stuff here
assert exc.value.args[0] == "message"
```

would you mind adding this to the tests here and in the other file?