def test_mergesort_alphabetical_single(self): sortedList = sortUrls.mergesort_alphabetical(self.singleUrl).sort() self.assertEquals(sortedList, self.singleUrl)
def test_mergesort_alphabetical_empty(self): sortedList = sortUrls.mergesort_alphabetical(self.emptyUrls).sort() self.assertEquals(sortedList, self.emptyUrls)
def test_mergesort_alphabetical(self): sortedList = sortUrls.mergesort_alphabetical(self.urls).sort() self.assertEquals(sortedList, self.sortedByAlphabetical)