

@mock_ec2
def test_eip_allocate_vpc():
    'Allocate/release VPC EIP'
    conn = boto.connect_ec2('the_key', 'the_secret')
    vpc = conn.allocate_address(domain='vpc')
    vpc.should.be.a(boto.ec2.address.Address)
    vpc.domain.should.be.equal('vpc')
    logging.debug('vpc alloc_id:'.format(vpc.allocation_id))
    vpc.release()

dataset/ETHPy150Open spulec/moto/tests/test_ec2/test_elastic_ip_addresses.py test_eip_allocate_vpc/original