def METHOD_NAME(self):
    # Note that the check is skipped when we don't have
    # the "Add portal content" permission.
    self.folder.manage_permission("Add portal content", ["Manager"], acquire=0)
    self.folder._setObject("foo", dummy.Item("foo"))
    for alias in self.folder.getTypeInfo().getMethodAliases().keys():
        r = check_id(self.folder.foo, alias)
        self.assertEqual(r, "%s is reserved." % alias)