Example #1
0
def test_avialable_when_program_exists():
    p = BasePinger(program_path="ls")
    assert p.is_available() == True
def test_avialable_when_program_exists():
    p = BasePinger(program_path="ls")
    assert p.is_available() == True
Example #3
0
def test_avialable_when_program_does_not_exist():
    p = BasePinger(program_path="not_exist")
    assert p.is_available() == False
def test_avialable_when_program_does_not_exist():
    p = BasePinger(program_path="not_exist")
    assert p.is_available() == False