Factoring out an assertTrifleError helper method.