def testBuildHeap(self): # Test that the list is built into a heap data = [1, 5, 9, 1, 3, 2] Sort._buildHeap(data) self.assertEqual(data, [9, 5, 2, 1, 3, 1])