

def test_no_associate_public_ip_address(self):
    args = ' --image-id ami-foobar --count 1  --subnet-id subnet-12345678 '
    args += '--no-associate-public-ip-address'
    args_list = (args_list.prefix + args).split()
    result = {
        'ImageId': 'ami-foobar',
        'NetworkInterfaces': [{
            'AssociatePublicIpAddress': False,
            'DeviceIndex': 0,
            'SubnetId': 'subnet-12345678',
        }],
        '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_no_associate_public_ip_address/VarMisuse@21/64 `self`->`args_list`