Exemple #1
0
 def testConvertH3Hash(self):
     c = Parser()
     test = c.atx_headers(self.marks[2])
     self.assertEqual(test,"<h3> Third-level heading </h3>", 
                             "\nLine not converted correctly\nInput: %s\nOutput: %s" % 
                             (self.marks[2], test))
Exemple #2
0
 def testConvertH6Hash(self):
     c = Parser()
     test = c.atx_headers(self.marks[5])
     self.assertEqual(test,"<h6> Sixth-level heading </h6>", 
                             "\nLine not converted correctly\nInput: %s\nOutput: %s" % 
                             (self.marks[5], test))
Exemple #3
0
 def testConvertH1Hash(self):
     c = Parser()
     test = c.atx_headers(self.marks[0])
     self.assertEqual(test,"<h1> First-level heading </h1>", 
                             "\nLine not converted correctly\nInput: %s\nOutput: %s" % 
                             (self.marks[0], test))