diff --git a/python/educational-python/resources/fileTemplates/internal/test_helper.py.ft b/python/educational-python/resources/fileTemplates/internal/test_helper.py.ft index d27866c23f01..687bdd580a95 100644 --- a/python/educational-python/resources/fileTemplates/internal/test_helper.py.ft +++ b/python/educational-python/resources/fileTemplates/internal/test_helper.py.ft @@ -90,7 +90,7 @@ def test_is_initial_text(error_text="You should modify the file"): text = get_initial_text(path) file_text = get_file_text(path) - if file_text.strip() == text: + if file_text.strip() == text.strip(): failed(error_text) else: passed()