Use asserRaisesRegexp for more specific checking