def test04():
    class Bogus(object): pass
    m = get_mapper(dom1)
    try:
        cls = m[Bogus]
        assert False, "should have raised a KeyError"
    except __HOLE__, _:
        pass
dataset/ETHPy150Open haxsaw/actuator/src/tests/utils_tests.py/test04