You can use `.startswith("The 'b' columns ...")` to avoid counting characters.  I also commonly use the idiom `assert "The 'b' columns .." in str(excinfo)`.