示例#1
0
文件: lore_t.py 项目: Teifion/Rob3
	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)
示例#2
0
文件: lore_t.py 项目: Teifion/Rob3
	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)