def test_associate_public_ip_address_and_private_ip_address(self):
        args = ' --image-id ami-foobar --count 1 '
        args += '--private-ip-address 10.0.0.200 '
        args += '--associate-public-ip-address --subnet-id subnet-12345678'
        args_list = (self.prefix + args).split()
        result = {
            'NetworkInterfaces': [{
                'DeviceIndex': 0,
                'AssociatePublicIpAddress': True,
                'SubnetId': 'subnet-12345678',
                'PrivateIpAddresses': [
                    {'PrivateIpAddress': '10.0.0.200',
                     'Primary': True}],
            }],
            '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_associate_public_ip_address_and_private_ip_address/original