@mock_ec2
def test_dhcp_options_associate_invalid_dhcp_id():
    conn = boto.connect_vpc('the_key', 'the_secret')
    vpc = conn.create_vpc("10.0.0.0/16")

    with assert_raises(EC2ResponseError) as cm:
        conn.associate_dhcp_options("foo", vpc.id)
    cm.exception.code.should.equal('InvalidDhcpOptionID.NotFound')
    cm.exception.status.should.equal(400)
    cm.exception.request_id.should_not.be.none
Should parse replaceResult XML.
dataset/ETHPy150Open spulec/moto/tests/test_ec2/test_dhcp_options.py/test_dhcp_options_associate_invalid_dhcp_id--crossover with--dataset/ETHPy150Open tophatmonocle/ims_lti_py/tests/outcome_request_test.py/TestOutcomeRequest.test_parse_replace_result_xml