Exemplo n.º 1
0
def test_signal2int_with_bad_name():
    with pytest.raises(ValueError):
        launcher.signal2int('foobar')
Exemplo n.º 2
0
def test_signal2int_with_bad_type():
    with pytest.raises(ValueError):
        launcher.signal2int(None)
Exemplo n.º 3
0
def test_signal_name_to_int():
    assert launcher.signal2int(1) == 1
    assert launcher.signal2int('1') == 1
    assert launcher.signal2int('pipe') == 13
    assert launcher.signal2int('PIPE') == 13
    assert launcher.signal2int('sigPIPE') == 13