Example #1
0
 def testGetFormatted(self):
     section = raw_doc.RawSection(self.t, self.txt, 1)
     self.assertEqual(section.getFormatted(self.formatter),
                      '@subsection aword\n')
Example #2
0
 def testCreationWithLevel(self):
     section = raw_doc.RawSection(self.t, self.txt, 1)
     self.assertEqual(section.heading, self.txt)
     self.assertEqual(section.level, 1)
Example #3
0
 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')
Example #4
0
 def testGetType(self):
     section = raw_doc.RawSection(self.t, self.txt, 1)
     self.assertEqual(section.getType(), 'section')