def test_binary_heap_insertion(self): print("Inserting Elements in Binary Heap") bh = MinBinaryHeap() elements: List[int] = [random.randrange(0, 1000) for _ in range(10)] #elements:List[int] = [761, 327, 332, 385, 605, 772, 945, 737, 976, 518] print('Elements are:{}'.format(elements)) for key in elements: bh.insert_element_min_heap(key) print("Heap after Elements insertion are") bh.print()