def test_left_one(self): max_heap = MaxHeap([1]) left = max_heap.left(1) self.assertEquals(3,left)
def test_left_two(self): max_heap = MaxHeap([1]) left = max_heap.left(2) self.assertEquals(5,left)
def test_left_zero(self): max_heap = MaxHeap([1]) left = max_heap.left(0) self.assertEquals(1,left)