def test_sandbox_failed(): assert not main("python/0PLG/TPE/identificateurs.pl", sandboxurl="fake_sandbox")
def test_main_pl_succeed(): assert main("python/0PLG/TPE/identificateurs.pl", sandboxurl="http://127.0.0.1:8000/sandbox/?action=execute")
def test_main_failed(): assert not main("bad_file", sandboxurl="http://127.0.0.1:8000/sandbox/?action=execute")
def test_main_pltp_failed(): os.chdir(str(os.path.dirname(__file__)) + '/../../../../repo/plbank') assert not main("/python/0PLG/missingkey.pltp", sandboxurl="http://127.0.0.1:8000/sandbox/?action=execute")