Ejemplo n.º 1
0
def test_is_host_available_remote():
    tool = WinOSClient('8.8.8.8')
    response = tool.is_host_available(port=53)
    assert response, 'Response is not True'
Ejemplo n.º 2
0
def test_is_host_unavailable_remote():
    tool = WinOSClient('8.8.8.8')
    response = tool.is_host_available(port=22)
    assert not response, 'Response is not False'
Ejemplo n.º 3
0
def test_is_host_available_locally():
    """Execute method locally. Must be True"""

    tool = WinOSClient(host='')
    response = tool.is_host_available()
    assert response, 'Local host is available always'