diff --git a/logging_course/test_helper.py b/logging_course/test_helper.py index caf123f..69813fd 100644 --- a/logging_course/test_helper.py +++ b/logging_course/test_helper.py @@ -253,3 +253,13 @@ def run_common_tests(error_text="Please, reload file and try again"): test_answer_placeholders_text_deleted() test_file_importable() + +############################################################################## +## CUSTOM HELPERS +############################################################################## +def check_answers(placeholders, answers): + for placeholder, answer in zip(placeholders, answers): + if placeholder not in answer: + failed() + return + passed()