@capture_logging(None)
    def test_with_context_preserves_context(self, logger):
        with startAction(action_type="parent"):
            wrapped = preserve_context(lambda: self.add(3, 4))
        thread = Thread(target=wrapped)
        thread.start()
        thread.join()
        [tree] = Parser.parse_stream(logger.messages)
        root = tree.root()
        self.assertEqual((root.action_type,
                          root.children[0].action_type,
                          root.children[0].children[0].contents[
                              MESSAGE_TYPE_FIELD]),
                         ("parent", "eliot:remote_task", "child"))
Lists all languages.
dataset/ETHPy150Open ClusterHQ/eliot/eliot/tests/test_action.py/PreserveContextTests.test_with_context_preserves_context--crossover with--dataset/ETHPy150Open mitsuhiko/solace/solace/application.py/Request.list_languages