def test_actionCounter(self):
        logger = MemoryLogger()
        msg = Message.new(key=2)
        with startAction(logger, "sys:thename"):
            for i in range(4):
                msg.write(logger)
        # We expect 6 messages: start action, 4 standalone messages, finish
        # action:
        self.assertEqual([m["task_level"] for m in logger.messages],
                         [[1], [2], [3], [4], [5], [6]])
Construct a RevocationReason object.
dataset/ETHPy150Open ClusterHQ/eliot/eliot/tests/test_message.py/MessageTests.test_actionCounter--crossover with--dataset/ETHPy150Open OpenKMIP/PyKMIP/kmip/core/objects.py/RevocationReason.__init__