Ejemplo n.º 1
0
def test_sh_raises_exit_code_127():
    with pytest.raises(SystemExit) as exc:
        assemble.sh("foo")

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