예제 #1
0
파일: tests.py 프로젝트: kracekumar/pylive
def test_build_execution_command():
    assert_multi_line_equal(build_execution_command('example.py'),\
    "%s %s --tmp=%s --timeout=%s --heapsize=%s %s %s"%(pypy_bin,pypy_interact,\
    tmp, timeout, memory, pypy_c, "example.py"))
예제 #2
0
파일: tests.py 프로젝트: kracekumar/pylive
def test_check_error_timeout():
    r = run(build_execution_command('test_timeout.py'))
    assert_equals(check_error(r.std_err),"timeout")