Esempio n. 1
0
def test_ping():
    with patch(
        "salt.utils.napalm.get_device",
        MagicMock(return_value=napalm_test_support.MockNapalmDevice()),
    ):
        ret = napalm_network.ping("destination.com")
        assert list(ret["out"].keys())[0] == "success"
Esempio n. 2
0
 def test_ping(self):
     ret = napalm_network.ping('destination.com')
     assert list(ret['out'].keys())[0] == 'success'
Esempio n. 3
0
 def test_ping(self):
     ret = napalm_network.ping("destination.com")
     assert list(ret["out"].keys())[0] == "success"