doctests for DOC_ATTR