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