'Logging in the method running in the thread pool is child of caller\'s
Eliot context.'

def assert_context_preserved(self, logger):

    parent = assertHasAction(self, logger, LOG_IN_CALLER, True, {})
    self.assertIn(parent.children[0].children[0], LoggedAction.of_type(logger.messages, LOG_IN_SPY))
