def METHOD_NAME(self):
    ba1 = taint_pyobject(
        pyobject=bytearray(b"123"), source_name="test", source_value="foo", source_origin=OriginType.PARAMETER
    )
    ba2 = bytearray(b"456")
    result = mod.do_bytearray_extend(ba1, ba2)
    assert result == bytearray(b"123456")
    assert ba1 == bytearray(b"123456")
    ranges = get_tainted_ranges(result)
    assert ranges == [TaintRange(0, 3, Source("test", "foo", OriginType.PARAMETER))]
    assert get_tainted_ranges(ba1) == [TaintRange(0, 3, Source("test", "foo", OriginType.PARAMETER))]
    assert not get_tainted_ranges(ba2)