def doc_parse_markup(content, markup):
 (_, _, p) = doc_rev_parser(content, (TEMPLATE_TITLE_PREFIX + 'test'), category=TEMPLATES_CATEGORY)
 doc = pq(p.parse(markup))
 return (doc, p)

def doc_parse_markup ( content , markup ) : ( _ , _ , p ) = doc_rev_parser ( content , ( TEMPLATE_TITLE_PREFIX + 'test' ) , category = TEMPLATES_CATEGORY ) doc = pq ( p . parse ( markup ) ) return ( doc , p )
create a doc with given content and parse given markup .