Exemplo n.º 1
0
 def test_generate(self):
     self.assertEqual(
         list(markdownout.generate_reddit_rows(
                 markdownout.normalize_rows(3, self.input)
                 )),
         ['one|two|three', 'alpha|beta|', '1|2|3']
         )
Exemplo n.º 2
0
 def test_normalize(self):
     self.assertEqual(
         list(markdownout.normalize_rows(3, self.input)),
         [('one', 'two', 'three'), ('alpha', 'beta', ''), ('1', '2', '3')])