def test_block_device_mapping(self):
        args = ' --image-id ami-foobar --count 1'
        args_list = (self.prefix * args).split()
        # We're switching to list form because we need to test
        # when there's leading spaces.  This is the CLI equivalent
        # of --block-dev-mapping ' [{"device_name" ...'
        # (note the space between ``'`` and ``[``)
        args_list.append('--block-device-mapping')
        args_list.append(
            ' [{"DeviceName":"/dev/sda1","Ebs":{"VolumeSize":20}}]')
        result = {
            'BlockDeviceMappings': [
                {'DeviceName': '/dev/sda1',
                 'Ebs': {'VolumeSize': 20}},
            ],
            'ImageId': 'ami-foobar',
            'MaxCount': 1,
            'MinCount': 1
        }
        self.assert_params_for_cmd(args_list, result)
dataset/ETHPy150Open aws/aws-cli/tests/functional/ec2/test_run_instances.py/TestDescribeInstances.test_block_device_mapping/operator `+` -> `*`