'``log_list_volumes`` increments the count field of log messages.'

@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])
