@given(start_action_messages, lists(written_messages | written_actions),
           settings=Settings(min_satisfying_examples=1))
    def test_children(self, start_message, child_messages):
        messages = [
            reparent_action(
                start_message.task_uuid,
                TaskLevel(level=sibling_task_level(start_message, i)),
                message)
            for (i, message) in enumerate(child_messages, 2)]
        action = WrittenAction.from_messages(start_message, messages)
        task_level = lambda m: m.task_level
        self.assertEqual(
            sorted(messages, key=task_level), action.children)
We can construct a L{WrittenAction} with child messages. These messages
dataset/ETHPy150Open ClusterHQ/eliot/eliot/tests/test_action.py/WrittenActionTests.test_children