summaryrefslogtreecommitdiff
path: root/yaksh/evaluator_tests
diff options
context:
space:
mode:
authoradityacp2016-09-16 20:28:21 +0530
committeradityacp2016-09-16 20:28:21 +0530
commitbfd75a4b87339c5037ad2d412e45ee12b223dd02 (patch)
treeda62b336a5b5681c4b0878a72170ee8d9f0bf037 /yaksh/evaluator_tests
parent2efd65cb2dd276e1560c8993e13d9db95e6c8ba0 (diff)
parent5b2a6fe665a3add0916a255e5436841b820146ee (diff)
downloadonline_test-bfd75a4b87339c5037ad2d412e45ee12b223dd02.tar.gz
online_test-bfd75a4b87339c5037ad2d412e45ee12b223dd02.tar.bz2
online_test-bfd75a4b87339c5037ad2d412e45ee12b223dd02.zip
changed course template to view demo course
Diffstat (limited to 'yaksh/evaluator_tests')
-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"))