@given(start_action_messages, message_dicts, text(), integers(min_value=1))
    def test_action_type_mismatch(self, start_message, end_message_dict,
                                  end_type, n):
        assume(end_type != start_message.contents[ACTION_TYPE_FIELD])
        end_message = written_from_pmap(union(end_message_dict, {
            ACTION_STATUS_FIELD: SUCCEEDED_STATUS,
            ACTION_TYPE_FIELD: end_type,
            TASK_UUID_FIELD: start_message.task_uuid,
            TASK_LEVEL_FIELD: sibling_task_level(start_message, n),
        }))
        self.assertRaises(
            WrongActionType,
            WrittenAction.from_messages, start_message, end_message=end_message)
The end message of an action must have the same C{ACTION_TYPE_FIELD} as
dataset/ETHPy150Open ClusterHQ/eliot/eliot/tests/test_action.py/WrittenActionTests.test_action_type_mismatch