def test_inheritance():
    'Test inheritance behavior.'
    vec1 = [1, 2, 3, 4]
    vec2 = [5, 6, 7]
    obj = ChildList(vec1, vec2)
    assert (obj.get_data() == vec2)
    assert (obj.get_data_base() == vec1)
    assert (get_list(obj) == vec1)
    holder = ListHolder(obj)
    obj_ref = holder.get_obj_ref()
    obj_ptr = holder.get_obj_ptr()
    assert (obj_ref is obj)
    assert (obj_ptr is obj)
    assert isinstance(obj_ref, ChildList)
Test inheritance behavior.
def test_inheritance():
    
    vec1 = [1, 2, 3, 4]
    vec2 = [5, 6, 7]
    obj = ChildList(vec1, vec2)
    assert (obj.get_data() == vec2)
    assert (obj.get_data_base() == vec1)
    assert (get_list(obj) == vec1)
    holder = ListHolder(obj)
    obj_ref = holder.get_obj_ref()
    obj_ptr = holder.get_obj_ptr()
    assert (obj_ref is obj)
    assert (obj_ptr is obj)
    assert isinstance(obj_ref, ChildList)