Example #1
0
def test_replace():
    assert replace('abc', ('a', 'b')) == 'bbc'
    assert replace('abc', {'a': 'Aa'}) == 'Aabc'
    assert replace('abc', ('a', 'b'), ('c', 'C')) == 'bbC'
Example #2
0
def test_replace():
    assert replace('abc', ('a', 'b')) == 'bbc'
    assert replace('abc', {'a': 'Aa'}) == 'Aabc'
    assert replace('abc', ('a', 'b'), ('c', 'C')) == 'bbC'
Example #3
0
def test_replace():
    assert replace("abc", ("a", "b")) == "bbc"
    assert replace("abc", {"a": "Aa"}) == "Aabc"
    assert replace("abc", ("a", "b"), ("c", "C")) == "bbC"