summaryrefslogtreecommitdiff
path: root/yaksh/tests/test_code_server.py
diff options
context:
space:
mode:
authormaheshgudi2017-11-06 19:35:13 +0530
committermaheshgudi2017-11-07 14:50:09 +0530
commit08c076b7945dec8257efc10db4c9b141a8cf7f8c (patch)
tree125976d85ce6f7ce1f42db960e192864432b9393 /yaksh/tests/test_code_server.py
parent70a35ac2a001bd9638d9db5ed645d00f94ae4666 (diff)
downloadonline_test-08c076b7945dec8257efc10db4c9b141a8cf7f8c.tar.gz
online_test-08c076b7945dec8257efc10db4c9b141a8cf7f8c.tar.bz2
online_test-08c076b7945dec8257efc10db4c9b141a8cf7f8c.zip
Modify testcases wrt changes in assertion error output
Diffstat (limited to 'yaksh/tests/test_code_server.py')
-rw-r--r--yaksh/tests/test_code_server.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/yaksh/tests/test_code_server.py b/yaksh/tests/test_code_server.py
index 5f80f2d..1309624 100644
--- a/yaksh/tests/test_code_server.py
+++ b/yaksh/tests/test_code_server.py
@@ -61,7 +61,7 @@ class TestCodeServer(unittest.TestCase):
# Then
data = json.loads(result.get('result'))
self.assertFalse(data['success'])
- self.assertTrue('infinite loop' in data['error'][0])
+ self.assertTrue('infinite loop' in data['error'][0]['message'])
def test_correct_answer(self):
# Given
@@ -104,7 +104,7 @@ class TestCodeServer(unittest.TestCase):
# Then
data = json.loads(result.get('result'))
self.assertFalse(data['success'])
- self.assertTrue('AssertionError' in data['error'][0])
+ self.assertTrue('AssertionError' in data['error'][0]['exception'])
def test_multiple_simultaneous_hits(self):
# Given
@@ -143,7 +143,7 @@ class TestCodeServer(unittest.TestCase):
for i in range(N):
data = results.get()
self.assertFalse(data['success'])
- self.assertTrue('infinite loop' in data['error'][0])
+ self.assertTrue('infinite loop' in data['error'][0]['message'])
def test_server_pool_status(self):
# Given