@mock_ec2_deprecated
def test_invalid_id():
    conn = boto.connect_ec2('the_key', 'the_secret')
    with pytest.raises(EC2ResponseError) as cm:
        conn.create_tags('ami-blah', {'key': 'tag'})
    cm.value.code.should.equal('InvalidID')
    cm.value.status.should.equal(400)
    with pytest.raises(EC2ResponseError) as cm:
        conn.create_tags('blah-blah', {'key': 'tag'})
    cm.value.code.should.equal('InvalidID')
    cm.value.status.should.equal(400)
@mock_ec2_deprecated
def test_invalid_id():
    conn = boto.connect_ec2('the_key', 'the_secret')
    with pytest.raises(EC2ResponseError) as cm:
        conn.create_tags('ami-blah', {'key': 'tag'})
    cm.value.code.should.equal('InvalidID')
    cm.value.status.should.equal(400)
    with pytest.raises(EC2ResponseError) as cm:
        conn.create_tags('blah-blah', {'key': 'tag'})
    cm.value.code.should.equal('InvalidID')
    cm.value.status.should.equal(400)