

@mock_ec2
def test_vpc_get_by_dhcp_options_id():
    conn = boto.connect_vpc()
    dhcp_options = conn.create_dhcp_options(SAMPLE_DOMAIN_NAME, SAMPLE_NAME_SERVERS)
    vpc1 = conn.create_vpc('10.0.0.0/16')
    vpc2 = conn.create_vpc('10.0.0.0/16')
    conn.create_vpc('10.0.0.0/24')
    conn.associate_dhcp_options(dhcp_options.id, vpc1.id)
    conn.associate_dhcp_options(dhcp_options.id, vpc2.id)
    vpcs = conn.get_all_vpcs(filters={
        'dhcp-options-id': dhcp_options.id,
    })
    vpcs.should.have.length_of(2)
    vpc_ids = tuple(map((lambda v: v.id), vpcs))
    vpc1.id.should.be.within(vpc_ids)
    vpc2.id.should.be.within(vpc2)

dataset/ETHPy150Open spulec/moto/tests/test_ec2/test_vpcs.py test_vpc_get_by_dhcp_options_id/VarMisuse@155/245 `vpc_ids`->`vpc2`