diff options
author | adityacp | 2016-09-01 14:52:01 +0530 |
---|---|---|
committer | adityacp | 2016-09-01 14:52:01 +0530 |
commit | 231029d3942c020733807c353314ec91e327af07 (patch) | |
tree | 3150f567e622945b50dd7c223e57be6923a6aa54 /yaksh/evaluator_tests/test_python_evaluation.py | |
parent | 3f4fd6ec0369b3285cc5f4f8f095c2d4b760fe85 (diff) | |
download | online_test-231029d3942c020733807c353314ec91e327af07.tar.gz online_test-231029d3942c020733807c353314ec91e327af07.tar.bz2 online_test-231029d3942c020733807c353314ec91e327af07.zip |
changes in test cases for tracebacks
Diffstat (limited to 'yaksh/evaluator_tests/test_python_evaluation.py')
-rw-r--r-- | yaksh/evaluator_tests/test_python_evaluation.py | 8 |
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 b432630..493a3c2 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")) |