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'] )
def test_normalize(self): self.assertEqual( list(markdownout.normalize_rows(3, self.input)), [('one', 'two', 'three'), ('alpha', 'beta', ''), ('1', '2', '3')])