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)
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)