def test_copy_heap(): heap = Heap(num_list) copy = heap.copy() assert (heap._vals == copy._vals) assert (heap is not copy)
def test_copy_heap(): heap = Heap(num_list) copy = heap.copy() assert(heap._vals == copy._vals) assert(heap is not copy)