def testGetFormatted(self): section = raw_doc.RawSection(self.t, self.txt, 1) self.assertEqual(section.getFormatted(self.formatter), '@subsection aword\n')
def testCreationWithLevel(self): section = raw_doc.RawSection(self.t, self.txt, 1) self.assertEqual(section.heading, self.txt) self.assertEqual(section.level, 1)
def testGetCommand(self): section = raw_doc.RawSection(self.t, self.txt, 0) self.assertEqual(section.getCommand(), 'section') section = raw_doc.RawSection(self.t, self.txt, 1) self.assertEqual(section.getCommand(), 'subsection')
def testGetType(self): section = raw_doc.RawSection(self.t, self.txt, 1) self.assertEqual(section.getType(), 'section')