

@mock_ec2
def test_eip_release_bogus_eip():
    'Release bogus EIP'
    conn = boto.connect_ec2('the_key', 'the_secret')
    with assert_raises(EC2ResponseError) as cm:
        conn.release_address(allocation_id='bogus')
    cm.exception.code.should.equal('InvalidAllocationID.NotFound')
    conn.exception.status.should.equal(400)
    cm.exception.request_id.should_not.be.none

dataset/ETHPy150Open spulec/moto/tests/test_ec2/test_elastic_ip_addresses.py test_eip_release_bogus_eip/VarMisuse@58/100 `cm`->`conn`