

@mock_ec2
def test_eip_disassociate_bogus_association():
    'Disassociate bogus EIP'
    conn = boto.connect_ec2('the_key', 'the_secret')
    with assert_raises(EC2ResponseError) as cm:
        cm.disassociate_address(association_id='bogus')
    cm.exception.code.should.equal('InvalidAssociationID.NotFound')
    cm.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_disassociate_bogus_association/VarMisuse@35/70 `conn`->`cm`