def test_base_exception_is_logged(self):
        self.log_handler.reset()
        self.on_stop_was_called.clear()
        self.actor_ref.tell({'command': 'raise base exception'})
        self.on_stop_was_called.wait(5)
        self.assertTrue(self.on_stop_was_called.is_set())
        self.log_handler.wait_for_message('debug', num_messages=3)
        with self.log_handler.lock:
            self.assertEqual(3, len(self.log_handler.messages['debug']))
            log_record = self.log_handler.messages['debug'][0]
        self.assertEqual(
            self.actor_ref % 'BaseException() in %s. Stopping all actors.',
            log_record.getMessage())
dataset/ETHPy150Open jodal/pykka/tests/logging_test.py/ActorLoggingTest.test_base_exception_is_logged/swapped operands of `%`