Exemple #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)
Exemple #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)
Exemple #3
0
	def test_two(self):
		evs = wikipediaprocess._string_blocks_to_events(stringblockstwo)
		self.p(evs)
		self.assertEqual(len(evs), 1)
Exemple #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)
Exemple #5
0
	def test_one(self):
		evs = wikipediaprocess._string_blocks_to_events(stringblocksone)
		self.p(evs)
		self.assertEqual(len(evs), 6)