def test_plaintext_convert(self): vals = ( ("<strong>XYZ</strong>", "XYZ"), ) for str_in, expected in vals: result = pages.convert([{"description":str_in}], "plaintext") self.assertEqual(result, expected)
def test_bbcode_convert(self): vals = ( ("<strong>XYZ</strong>", "[o][/o]\n[b]XYZ[/b]"), ) for str_in, expected in vals: result = pages.convert([{"description":str_in}], "bbcode") self.assertEqual(result, expected)