Examples in other tests: def test_reverse_two(): arr = [1,2,3] arrID = id(arr) assert id(reverse(arr)) == arrID def test_extend_two(): arr = [1,2,3] arrID = id(arr) assert id(extend(arr, [4,5,6])) == arrID