def test_regular_fields(self):
        class MyException(Exception):
            pass
        register_exception_extractor(MyException,
                                     lambda e: {"key": e.args[0]})

        exception = MyException("because")
        messages = get_failed_action_messages(exception)
        assertContainsFields(self, messages[0],
                             {"task_level": [2],
                              "action_type": "sys:me",
                              "action_status": "failed",
                              "reason": "because",
                              "exception":
                              "eliot.tests.test_action.MyException"})
power_list : power_list trailer
dataset/ETHPy150Open ClusterHQ/eliot/eliot/tests/test_action.py/FailedActionExtractionTests.test_regular_fields--crossover with--dataset/ETHPy150Open nucleic/enaml/enaml/core/parser.py/p_power_list2