diff options
author | Prabhu Ramachandran | 2017-01-16 21:56:23 +0530 |
---|---|---|
committer | GitHub | 2017-01-16 21:56:23 +0530 |
commit | d03826261adae349151e28d09ea2e2f85e168909 (patch) | |
tree | 4951c40ade87e2679b42b71ee8f392496c6fe880 /yaksh/evaluator_tests | |
parent | 0e3e0cdbf322df9b5c8b7da0301cebe71eadcbe9 (diff) | |
parent | 51ddfe4b5876c99077db9de130eec01a40787d59 (diff) | |
download | online_test-d03826261adae349151e28d09ea2e2f85e168909.tar.gz online_test-d03826261adae349151e28d09ea2e2f85e168909.tar.bz2 online_test-d03826261adae349151e28d09ea2e2f85e168909.zip |
Merge pull request #180 from prathamesh920/UI-modifications-phase-2
Ui modifications phase 2
Diffstat (limited to 'yaksh/evaluator_tests')
-rw-r--r-- | yaksh/evaluator_tests/test_python_evaluation.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/yaksh/evaluator_tests/test_python_evaluation.py b/yaksh/evaluator_tests/test_python_evaluation.py index c58d7f1..43dfe6b 100644 --- a/yaksh/evaluator_tests/test_python_evaluation.py +++ b/yaksh/evaluator_tests/test_python_evaluation.py @@ -76,13 +76,13 @@ class PythonAssertionEvaluationTestCases(EvaluatorBaseTest): # Then self.assertFalse(result.get('success')) - self.assert_correct_output('AssertionError in: assert(add(1,2)==3)', + self.assert_correct_output('AssertionError in:\n assert(add(1,2)==3)', result.get('error') ) - self.assert_correct_output('AssertionError in: assert(add(-1,2)==1)', + self.assert_correct_output('AssertionError in:\n assert(add(-1,2)==1)', result.get('error') ) - self.assert_correct_output('AssertionError in: assert(add(-1,-2)==-3)', + self.assert_correct_output('AssertionError in:\n assert(add(-1,-2)==-3)', result.get('error') ) @@ -110,10 +110,10 @@ class PythonAssertionEvaluationTestCases(EvaluatorBaseTest): # Then self.assertFalse(result.get('success')) self.assertEqual(result.get('weight'), 2.0) - self.assert_correct_output('AssertionError in: assert(add(-1,2)==1)', + self.assert_correct_output('AssertionError in:\n assert(add(-1,2)==1)', result.get('error') ) - self.assert_correct_output('AssertionError in: assert(add(-1,-2)==-3)', + self.assert_correct_output('AssertionError in:\n assert(add(-1,-2)==-3)', result.get('error') ) |