def test_function_remove_whitespace_empty_string(): string = '' with pytest.raises(ValueError): tobetested.function_remove_whitespace(string)
def test_function_remove_whitespace_working(): string = "Texte avec espaces " assert tobetested.function_remove_whitespace(string) == "Texteavecespaces"