示例#1
0
	def test_combine(self):
		article = BeautifulSoup(html_iraqwar)
		evs = wikipediaprocess._string_blocks_to_events(wikipediaprocess._html_to_string_blocks(article))
		self.p(evs)
		self.assertEqual(len(evs), 5)
示例#2
0
	def test_four(self):
		article = BeautifulSoup(html_modernhist)
		evs = wikipediaprocess._string_blocks_to_events(wikipediaprocess._html_to_string_blocks(article))
		self.p(evs)
		self.assertEqual(len(evs), 122)
示例#3
0
	def test_two(self):
		evs = wikipediaprocess._string_blocks_to_events(stringblockstwo)
		self.p(evs)
		self.assertEqual(len(evs), 1)
示例#4
0
	def test_three(self):
		article = BeautifulSoup(html_particlephysics)
		evs = wikipediaprocess._string_blocks_to_events(wikipediaprocess._html_to_string_blocks(article))
		self.p(evs)
		self.assertEqual(len(evs), 31)
示例#5
0
	def test_one(self):
		evs = wikipediaprocess._string_blocks_to_events(stringblocksone)
		self.p(evs)
		self.assertEqual(len(evs), 6)