def testSortedList_clean_Full(self): test_list=[1,1,2,3,5,5,10] sortedList = SortedList() for i in test_list: sortedList.insert(i) sortedList.clean() clean_list=[1,2,3,5,10] for expected in clean_list: actual = sortedList.remove(expected) self.assertEqual(expected, actual) return
def testSortedList_clean_Empty(self): test_list=[] sortedList = SortedList() for i in test_list: sortedList.insert(i) sortedList.clean() clean_list=[] for expected in clean_list: actual = sortedList.remove(expected) self.assertEqual(expected, actual) return