@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])
tests Creating a function without code
dataset/ETHPy150Open ClusterHQ/flocker/flocker/node/agents/test/test_blockdevice.py/LogListVolumesTest.test_generates_log_with_incrementing_count--crossover with--dataset/ETHPy150Open saltstack/salt/tests/unit/modules/boto_lambda_test.py/BotoLambdaFunctionTestCase.test_that_when_creating_a_function_with_zipfile_and_s3_raises_a_salt_invocation_error