@mock_ec2
def test_eip_allocate_invalid_domain():
    conn = boto.connect_ec2('the_key', 'the_secret')

    with assert_raises(EC2ResponseError) as cm:
        conn.allocate_address(domain="bogus")
    cm.exception.code.should.equal('InvalidParameterValue')
    cm.exception.status.should.equal(400)
    cm.exception.request_id.should_not.be.none
Tags a resolver function with a specific tag that can be read by a Middleware to denote specific functionality.
dataset/ETHPy150Open spulec/moto/tests/test_ec2/test_elastic_ip_addresses.py/test_eip_allocate_invalid_domain--crossover with--dataset/ETHPy150Open graphql-python/graphql-core/graphql/core/execution/middlewares/utils.py/tag_resolver