Exemplo n.º 1
0
def test_removeDelimiters():
    """Ensure removing delimeters works correctly"""
    string = "Th.is, shou+ld wo-rk /I thi\\nk"
    assert StringUtils.removeDelimiters(string) == "This should work I think"
    assert StringUtils.removeDelimiters(
        string, replacement=" ") == "Th is  shou ld wo rk  I thi nk"
Exemplo n.º 2
0
def test_removeDelimiters():
    """Ensure removing delimeters works correctly"""
    string = "Th.is, shou+ld wo-rk /I thi\\nk"
    assert StringUtils.removeDelimiters(string) == "This should work I think"
    assert StringUtils.removeDelimiters(string, replacement=" ") == "Th is  shou ld wo rk  I thi nk"