

@mock_ec2
def test_eip_allocate_classic():
    'Allocate/release Classic EIP'
    conn = boto.connect_ec2('the_key', 'the_secret')
    standard = conn.allocate_address()
    standard.should.be.a(boto.ec2.address.Address)
    standard.public_ip.should.be.a(six.text_type)
    standard.instance_id.should.be.none
    conn.domain.should.be.equal('standard')
    standard.release()
    standard.should_not.be.within(conn.get_all_addresses())

dataset/ETHPy150Open spulec/moto/tests/test_ec2/test_elastic_ip_addresses.py test_eip_allocate_classic/VarMisuse@75/105 `standard`->`conn`