def test_right_one(self): max_heap = MaxHeap([1]) right = max_heap.right(1) self.assertEquals(4,right)
def test_right_two(self): max_heap = MaxHeap([1]) right = max_heap.right(2) self.assertEquals(6,right)
def test_right_zero(self): max_heap = MaxHeap([1]) right = max_heap.right(0) self.assertEquals(2,right)