Ejemplo n.º 1
0
def test_empty_s():
    assert delete_all("", "what") == ""
Ejemplo n.º 2
0
def test_except():
    with pytest.raises(ValueError):
        delete_all(1, 2)
Ejemplo n.º 3
0
def test_simple_case():
    assert delete_all("This is AAAstring and this is AABstring",
                      "AAA") == "This is string and this is AABstring"
Ejemplo n.º 4
0
def test_multiple_case():
    assert delete_all("This is AAAstring and this is also AAAstring",
                      "AAA") == "This is string and this is also string"
Ejemplo n.º 5
0
def test_empty_what():
    assert delete_all("This should stay untouched!",
                      "") == "This should stay untouched!"