EDU-605 Tests always pass
authorLiana Bakradze <liana.bakradze@jetbrains.com>
Tue, 10 May 2016 11:38:49 +0000 (14:38 +0300)
committerLiana Bakradze <liana.bakradze@jetbrains.com>
Tue, 10 May 2016 11:38:49 +0000 (14:38 +0300)
python/educational-python/resources/fileTemplates/internal/test_helper.py.ft

index d27866c23f01e241f9765fe9bd48fe1faa01cccc..687bdd580a95062e980762d0f5ceae79357df4df 100644 (file)
@@ -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()