def METHOD_NAME(self):
    mod = self.make_module("""
        static HPyType_Spec dummy_spec = {
            .name = "mytest.Dummy",
        };
        HPyDef_METH(f, "f", HPyFunc_NOARGS)
        static HPy f_impl(HPyContext *ctx, HPy self)
        {
            HPyType_SpecParam param[] = {
                { HPyType_SpecParam_Base, ctx->h_LongType },
                { (HPyType_SpecParam_Kind)0 }
            };
            if (!HPyHelpers_AddType(ctx, self, "Dummy", &dummy_spec, param))
            {
                return HPy_NULL;
            }
            return HPy_Dup(ctx, ctx->h_None);
        }
        @EXPORT(f)
        @INIT
    """)
    assert not hasattr(mod, "Dummy")
    mod.f()
    assert isinstance(mod.Dummy, type)
    assert mod.Dummy.__name__ == "Dummy"
    assert isinstance(mod.Dummy(), mod.Dummy)
    assert isinstance(mod.Dummy(), int)
    assert mod.Dummy() == 0
    assert mod.Dummy(3) == 3