def test_bucketsort_single(self): sortedList = sortUrls.bucketsort(self.singleUrl).sort() self.assertEquals(sortedList, self.singleUrl)
def test_bucketsort_empty(self): sortedList = sortUrls.bucketsort(self.emptyUrls).sort() self.assertEquals(sortedList, self.emptyUrls)
def test_bucketsort(self): sortedList = sortUrls.bucketsort(self.urls).sort() self.assertEquals(sortedList, self.sortedByLength)