def METHOD_NAME(pm):
    class HookSpec(object):
        @hookspec()
        def he_myhook1(arg1):
            pass
        @hookspec(firstresult=True)
        def he_myhook2(arg1):
            pass
        @hookspec(firstresult=False)
        def he_myhook3(arg1):
            pass
    pm.add_hookspecs(HookSpec)
    assert not pm.hook.he_myhook1.spec.opts["firstresult"]
    assert pm.hook.he_myhook2.spec.opts["firstresult"]
    assert not pm.hook.he_myhook3.spec.opts["firstresult"]