def test_sh_raises_exit_code_127(): with pytest.raises(SystemExit) as exc: assemble.sh("foo") assert exc.value.code == 127
def test_sh_raises_systemexit(): with pytest.raises(SystemExit) as exc: assert assemble.sh("cp foo.py foo1.py")
def test_sh_for_success_msg(): assert assemble.sh("ls -la") is None