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