Esempio n. 1
0
	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)
Esempio n. 2
0
	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)