コード例 #1
0
def test_avialable_when_program_exists():
    p = BasePinger(program_path="ls")
    assert p.is_available() == True
コード例 #2
0
def test_avialable_when_program_exists():
    p = BasePinger(program_path="ls")
    assert p.is_available() == True
コード例 #3
0
def test_avialable_when_program_does_not_exist():
    p = BasePinger(program_path="not_exist")
    assert p.is_available() == False
コード例 #4
0
def test_avialable_when_program_does_not_exist():
    p = BasePinger(program_path="not_exist")
    assert p.is_available() == False