Ejemplo n.º 1
0
 def topic(self):
     now = datetime(2012, 1, 31)
     doc = Document()
     fp = cStringIO.StringIO("A Title\nmeta-creation_date: 1/31/2012 0:00\n\n<p>BODY</p>")
     doc._parseHead(fp)
     doc._parseBody(fp)
     return doc, now
Ejemplo n.º 2
0
 def topic(self):
     doc = Document()
     doc.parse("A Title\nmeta-creation_date: 8/13/2012 10:20\nTags: atag, btag\n\n<p>some text goes here</p><div>div text</div></p><p>ignore this [[ATAG a tag]] text. [[TAG-WITH-DASH dashed tag]].</p>\n")
     return doc
Ejemplo n.º 3
0
 def topic(self):
     doc = Document()
     doc.parse("A Title\nmeta-creation_date: 8/13/2012 10:20\n\n<p>some text goes here\n<div>div text</div>\n</p><p>ignore [[ATAG a tag]] [[BTAG b tag]]\nthis text</p>")
     return doc