Reverting change
parent
3b752628ba
commit
3f0c65a2cf
|
@ -44,7 +44,7 @@ def check_actual_answers_against_expression(check_answer, actual_answer, check_q
|
|||
if check_answer.startswith("!"):
|
||||
# Client has not been asked question, so a negative expression is moot.
|
||||
if len(actual_answer) == 0:
|
||||
return True
|
||||
return False
|
||||
for actual_answer in actual_answer:
|
||||
# Client has not been asked question, so a negative expression is moot.
|
||||
if actual_answer == '':
|
||||
|
|
|
@ -40,8 +40,8 @@ class QuestionSetTests(TestCase):
|
|||
self.assertTrue(check_actual_answers_against_expression('3B', '3B', check_question))
|
||||
self.assertFalse(check_actual_answers_against_expression('3C', '3B', check_question))
|
||||
self.assertTrue(check_actual_answers_against_expression('!3C', '3B', check_question))
|
||||
self.assertTrue(check_actual_answers_against_expression('!3C', '', check_question))
|
||||
self.assertTrue(check_actual_answers_against_expression('!3C', [''], check_question))
|
||||
self.assertFalse(check_actual_answers_against_expression('!3C', '', check_question))
|
||||
self.assertFalse(check_actual_answers_against_expression('!3C', [''], check_question))
|
||||
|
||||
def test_dependencies_for_numeric_checks(self):
|
||||
check_question = Question()
|
||||
|
|
Loading…
Reference in New Issue