def test_sortMap(self): try: quicksort.sort({'apple': 1, 'orange': 2}) except TypeError: pass except: self.fail("quicksort should throw an exception for non-list input")
def runBasicTest(self, input, expected): quicksort.sort(input) self.assertEquals(input, expected)