From f279b6861d160e582e7fd5b50c30200231acc7bb Mon Sep 17 00:00:00 2001 From: Valentina Kiryushkina Date: Thu, 9 Jun 2016 15:35:03 +0300 Subject: [PATCH] Minor Fix output format for adaptive courses check from samples --- .../resources/fileTemplates/internal/test_helper.py.ft | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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 250f253d8dec..c858ac375be0 100644 --- a/python/educational-python/resources/fileTemplates/internal/test_helper.py.ft +++ b/python/educational-python/resources/fileTemplates/internal/test_helper.py.ft @@ -205,13 +205,11 @@ def check_samples(samples=()): if "\n".join(output) != sample[1]: failed( "Test from samples failed: \n \n" - "Input:\n {}" + "Input:\n{}" "\n \n" - "Expected:\n {}" + "Expected:\n{}" "\n \n" - "Your result:\n {}".format(sample[0], - sample[1], - "\n".join(output))) + "Your result:\n{}".format(str.strip(sample[0]), str.strip(sample[1]), "\n".join(output))) return set_congratulation_message("All test from samples passed. Now we are checking your solution on Stepic server.")