예제 #1
0
파일: tests.py 프로젝트: tyagow/schoolquiz
def test_answer_grade_retuns_1_when_correct():
    """
    Assumption: when an answer is correct it should return 1 else 0
    :return:
    """
    question = QuestionBuilder.create_question()
    answer = Answer(question, question._correct_choice)
    assert answer.grade() == Decimal(1)