def testAddParagraph(self): entry = raw_doc.RawEntry(self.tok) self.assertEqual(entry.body, raw_doc.RawBody()) p = raw_doc.RawParagraph(self.tok) entry.addParagraph(p) b = raw_doc.RawBody() b.addParagraph(p) self.assertEqual(entry.body, b)
def setUp(self): self.t = lexer.Token('WORD', 'aword', 0, 0, 0) self.p = raw_doc.RawParagraph(self.t, raw_doc.RawText([self.t])) self.formatter = raw_doc.DoxFormatter()