Reverting change

dj111py38
Griffin Caprio 2015-04-15 07:38:30 -05:00
parent 3b752628ba
commit 3f0c65a2cf
2 changed files with 3 additions and 3 deletions

View File

@ -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 == '':

View File

@ -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()