summaryrefslogtreecommitdiff
path: root/yaksh/evaluator_tests/test_python_evaluation.py
diff options
context:
space:
mode:
authorPrabhu Ramachandran2016-09-08 16:25:41 +0530
committerGitHub2016-09-08 16:25:41 +0530
commitbcf46d1462c35e9c8df2509a31ac3200383976fc (patch)
tree10426f74b6c578e53e5002f0314bb484a04b41c4 /yaksh/evaluator_tests/test_python_evaluation.py
parentdc4437c52ee1266af9a69d091952d9f6b19ca584 (diff)
parent06daf67b7a579c113d17eacd4bfb0651ab169be4 (diff)
downloadonline_test-bcf46d1462c35e9c8df2509a31ac3200383976fc.tar.gz
online_test-bcf46d1462c35e9c8df2509a31ac3200383976fc.tar.bz2
online_test-bcf46d1462c35e9c8df2509a31ac3200383976fc.zip
Merge pull request #131 from adityacp/fix_quiz_UI
Fix quiz templates
Diffstat (limited to 'yaksh/evaluator_tests/test_python_evaluation.py')
-rw-r--r--yaksh/evaluator_tests/test_python_evaluation.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/yaksh/evaluator_tests/test_python_evaluation.py b/yaksh/evaluator_tests/test_python_evaluation.py
index e46b21f..3c07907 100644
--- a/yaksh/evaluator_tests/test_python_evaluation.py
+++ b/yaksh/evaluator_tests/test_python_evaluation.py
@@ -117,7 +117,7 @@ class PythonAssertionEvaluationTestCases(unittest.TestCase):
result = get_class.evaluate(**kwargs)
err = result.get("error").splitlines()
self.assertFalse(result.get("success"))
- self.assertEqual(2, len(err))
+ self.assertEqual(3, len(err))
for msg in name_error_msg:
self.assertIn(msg, result.get("error"))
@@ -139,7 +139,7 @@ class PythonAssertionEvaluationTestCases(unittest.TestCase):
result = get_class.evaluate(**kwargs)
err = result.get("error").splitlines()
self.assertFalse(result.get("success"))
- self.assertEqual(2, len(err))
+ self.assertEqual(969, len(err))
for msg in recursion_error_msg:
self.assertIn(msg, result.get("error"))
@@ -162,7 +162,7 @@ class PythonAssertionEvaluationTestCases(unittest.TestCase):
result = get_class.evaluate(**kwargs)
err = result.get("error").splitlines()
self.assertFalse(result.get("success"))
- self.assertEqual(2, len(err))
+ self.assertEqual(3, len(err))
for msg in type_error_msg:
self.assertIn(msg, result.get("error"))
@@ -186,7 +186,7 @@ class PythonAssertionEvaluationTestCases(unittest.TestCase):
result = get_class.evaluate(**kwargs)
err = result.get("error").splitlines()
self.assertFalse(result.get("success"))
- self.assertEqual(2, len(err))
+ self.assertEqual(4, len(err))
for msg in value_error_msg:
self.assertIn(msg, result.get("error"))