Ejemplo n.º 1
0
    def test_dataset2(self):
	    expected = ['http://www.udacity.com/cs101x/index.html', 
	                'http://www.udacity.com/cs101x/flying.html', 
	                'http://www.udacity.com/cs101x/walking.html']
		self.assertEquals(task.crawl_web("http://www.udacity.com/cs101x/index.html",3) , expected)
Ejemplo n.º 2
0
    def test_dataset1(self):
		expected = ['http://www.udacity.com/cs101x/index.html']
		self.assertEquals(task.crawl_web("http://www.udacity.com/cs101x/index.html",1),expected)