`str(exc)` will be the text of the error message, so the line can be
```
assert str(exc).startswith("Cannot convert from 'cxcsec' epoch "
                           "scale 'tt' to specified scale 'ut1', got error:")
```
In this case you don't need to explicitly check the entire rest of the error message.