From 781842c523ccf11b85e0be06e884b2cd585f3cb9 Mon Sep 17 00:00:00 2001 From: prathamesh Date: Wed, 3 Jul 2013 12:41:00 +0530 Subject: clean code --- testapp/test_server.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'testapp/test_server.py') 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.""" -- cgit