@capture_logging(lambda self, logger: None)
    def test_generates_log_with_incrementing_count(self, logger):
        @log_list_volumes
        def wrapped():
            pass

        wrapped()
        wrapped()
        wrapped()

        counts = [
            logged.message['count'] for logged in LoggedMessage.of_type(
                logger.messages, CALL_LIST_VOLUMES
            )
        ]

        self.assertEqual(counts, [1, 2, 3])
``log_list_volumes`` increments the count field of log messages.
dataset/ETHPy150Open ClusterHQ/flocker/flocker/node/agents/test/test_blockdevice.py/LogListVolumesTest.test_generates_log_with_incrementing_count