[lang-ref] ( replace_all ) ( python )
def test_replace_all():
# s.replace
text_org = 'abc def ghi\nabc def ghi'
s_org = 'def'
s_new = '!!DEF!!'
text_new = text_org.replace(s_org, s_new)
assert text_new == 'abc !!DEF!! ghi\nabc !!DEF!! ghi'