'Verify that the error used by ``_discover_state_error_test`` has been
logged to ``logger``.'

def _assert_simulated_error(self, logger):

    self.assertEqual(len(logger.flush_tracebacks(CustomException)), 1)
