From a89aff61b6bab0859c9f81142aa6be5d0ccc8ba1 Mon Sep 17 00:00:00 2001 From: Hardik Ghaghada Date: Wed, 24 Apr 2013 00:09:55 +0530 Subject: 80 Cols per line, corrected indentation in files & implemented DRY --- testapp/test_server.py | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'testapp/test_server.py') diff --git a/testapp/test_server.py b/testapp/test_server.py index e81daf2..0790816 100644 --- a/testapp/test_server.py +++ b/testapp/test_server.py @@ -35,28 +35,6 @@ def test_python(): language="python") check_result(result, 'nameerror') -def test_c(): - """Test if server runs Python code as expected.""" - src = 'while True: pass' - result = code_server.run_code(src, '', '/tmp', language="c") - check_result(result, 'more than ') - - src = 'x = 1' - result = code_server.run_code(src, 'assert x == 1', '/tmp', - language="c") - check_result(result, 'correct answer') - - result = code_server.run_code(src, 'assert x == 0', '/tmp', - language="c") - check_result(result, 'assertionerror') - - src = 'C lang. Code' - result = code_server.run_code(src, 'assert x == 0', '/tmp', - language="c") - check_result(result, 'nameerror') - - - def test_bash(): """Test if server runs Bash code as expected.""" src = """ -- cgit