diff options
author | Prabhu Ramachandran | 2016-11-18 16:35:31 +0530 |
---|---|---|
committer | GitHub | 2016-11-18 16:35:31 +0530 |
commit | 7fab5de07a05cf8f84e7beb8b4c166c0398172be (patch) | |
tree | aa8950fbeff7c6fff463dbd9df33a891045ca303 /yaksh/evaluator_tests | |
parent | d88708631a568c37ae56602407a29001d97a982f (diff) | |
parent | 2cb22a95912e6fe6bf97046de654207e4f265d8c (diff) | |
download | online_test-7fab5de07a05cf8f84e7beb8b4c166c0398172be.tar.gz online_test-7fab5de07a05cf8f84e7beb8b4c166c0398172be.tar.bz2 online_test-7fab5de07a05cf8f84e7beb8b4c166c0398172be.zip |
Merge pull request #160 from maheshgudi/add_datetimepicker
Date time picker and python assertion exception fix
Diffstat (limited to 'yaksh/evaluator_tests')
-rw-r--r-- | yaksh/evaluator_tests/test_python_evaluation.py | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/yaksh/evaluator_tests/test_python_evaluation.py b/yaksh/evaluator_tests/test_python_evaluation.py index 9796fa2..acf5d0a 100644 --- a/yaksh/evaluator_tests/test_python_evaluation.py +++ b/yaksh/evaluator_tests/test_python_evaluation.py @@ -200,7 +200,7 @@ class PythonAssertionEvaluationTestCases(unittest.TestCase): # Then self.assertFalse(result.get("success")) - self.assertEqual(3, len(err)) + self.assertEqual(9, len(err)) for msg in name_error_msg: self.assertIn(msg, result.get("error")) @@ -254,7 +254,7 @@ class PythonAssertionEvaluationTestCases(unittest.TestCase): # Then self.assertFalse(result.get("success")) - self.assertEqual(3, len(err)) + self.assertEqual(9, len(err)) for msg in type_error_msg: self.assertIn(msg, result.get("error")) @@ -284,7 +284,7 @@ class PythonAssertionEvaluationTestCases(unittest.TestCase): # Then self.assertFalse(result.get("success")) - self.assertEqual(4, len(err)) + self.assertEqual(9, len(err)) for msg in value_error_msg: self.assertIn(msg, result.get("error")) @@ -341,7 +341,7 @@ class PythonAssertionEvaluationTestCases(unittest.TestCase): # Then self.assertFalse(result.get("success")) - self.assertEqual(5, len(err)) + self.assertEqual(6, len(err)) for msg in syntax_error_msg: self.assertIn(msg, result.get("error")) @@ -360,9 +360,6 @@ class PythonAssertionEvaluationTestCases(unittest.TestCase): ] name_error_msg = ["Traceback", "call", - "File", - "line", - "<string>", "NameError", "name 'S' is not defined" ] @@ -379,7 +376,7 @@ class PythonAssertionEvaluationTestCases(unittest.TestCase): # Then self.assertFalse(result.get("success")) - self.assertEqual(3, len(err)) + self.assertEqual(7, len(err)) for msg in name_error_msg: self.assertIn(msg, result.get("error")) |