Пример #1
0
def test_sh_raises_exit_code_127():
    with pytest.raises(SystemExit) as exc:
        assemble.sh("foo")

    assert exc.value.code == 127
Пример #2
0
def test_sh_raises_systemexit():
    with pytest.raises(SystemExit) as exc:
        assert assemble.sh("cp foo.py foo1.py")
Пример #3
0
def test_sh_for_success_msg():
    assert assemble.sh("ls -la") is None