summaryrefslogtreecommitdiff
path: root/testapp/test_server.py
diff options
context:
space:
mode:
authorprathamesh2013-07-03 12:41:00 +0530
committerprathamesh2013-07-03 12:41:00 +0530
commit781842c523ccf11b85e0be06e884b2cd585f3cb9 (patch)
tree2c4ad65fdbc28ec5d5616e984e5baf3666b005d6 /testapp/test_server.py
parenteee6362ab994bc0082fdc777c225773318978b1a (diff)
downloadonline_test-781842c523ccf11b85e0be06e884b2cd585f3cb9.tar.gz
online_test-781842c523ccf11b85e0be06e884b2cd585f3cb9.tar.bz2
online_test-781842c523ccf11b85e0be06e884b2cd585f3cb9.zip
clean code
Diffstat (limited to 'testapp/test_server.py')
-rw-r--r--testapp/test_server.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/testapp/test_server.py b/testapp/test_server.py
index f2ea84c..924a6c5 100644
--- a/testapp/test_server.py
+++ b/testapp/test_server.py
@@ -8,13 +8,13 @@ from exam.xmlrpc_clients import code_server
def check_result(result, check='correct answer'):
- if check != 'correct answer':
- assert result[0] == False
- else:
- assert result[0] == True
- if "unable to connect" in result[1].lower():
+ if check != 'correct answer':
+ assert result[0] == False
+ else:
+ assert result[0] == True
+ if "unable to connect" in result[1].lower():
assert result[0], result[1]
- assert check in result[1].lower(), result[1]
+ assert check in result[1].lower(), result[1]
def test_python():
"""Test if server runs Python code as expected."""