

@mock_ec2
def test_vpc_defaults():
    conn = boto.connect_vpc('the_key', 'the_secret')
    vpc = conn.create_vpc('10.0.0.0/16')
    conn.get_all_vpcs().should.have.length_of(1)
    conn.get_all_route_tables().should.have.length_of(1)
    conn.get_all_security_groups(filters={
        'vpc-id': [vpc.id],
    }).should.have.length_of(1)
    vpc.delete()
    vpc.get_all_vpcs().should.have.length_of(0)
    conn.get_all_route_tables().should.have.length_of(0)
    conn.get_all_security_groups(filters={
        'vpc-id': [vpc.id],
    }).should.have.length_of(0)

dataset/ETHPy150Open spulec/moto/tests/test_ec2/test_vpcs.py test_vpc_defaults/VarMisuse@97/137 `conn`->`vpc`