コード例 #1
0
def test_function_remove_whitespace_empty_string():
    string = ''
    with pytest.raises(ValueError):
        tobetested.function_remove_whitespace(string)
コード例 #2
0
def test_function_remove_whitespace_working():
    string = "Texte avec espaces "
    assert tobetested.function_remove_whitespace(string) == "Texteavecespaces"