Skip to content

Commit

Permalink
Merge pull request jetbrains-academy#12 from SuperVirus/master
Browse files Browse the repository at this point in the history
Added lost custom helper check_answer
  • Loading branch information
ktisha authored Sep 6, 2016
2 parents a1354d1 + 6b5bdb0 commit 0487431
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions logging_course/test_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 0487431

Please sign in to comment.