コード例 #1
0
	def test_clean_xml1(self):
		dirt = "randomdirtwithoutescape"
		dirt_to_clean = clean_xml(dirt)
		standard_clean = "randomdirtwithoutescape"
		self.assertEqual(dirt_to_clean, standard_clean)
コード例 #2
0
	def test_clean_xml2(self):
		dirt = "me&myself&i"
		dirt_to_clean = clean_xml(dirt)
		standard_clean = "me&myself&i"
		self.assertEqual(dirt_to_clean, standard_clean)
コード例 #3
0
	def test_clean_xml0(self):
		dirt = "happy&go&lucky&&&go&happy"
		dirt_to_clean = clean_xml(dirt)
		standard_clean = "happy&go&lucky&&&go&happy"
		self.assertEqual(dirt_to_clean, standard_clean)