コード例 #1
0
def test_traceroute():
    with patch(
        "salt.utils.napalm.get_device",
        MagicMock(return_value=napalm_test_support.MockNapalmDevice()),
    ):
        ret = napalm_network.traceroute("destination.com")
        assert list(ret["out"].keys())[0] == "success"
コード例 #2
0
 def test_traceroute(self):
     ret = napalm_network.traceroute('destination.com')
     assert list(ret['out'].keys())[0] == 'success'
コード例 #3
0
 def test_traceroute(self):
     ret = napalm_network.traceroute("destination.com")
     assert list(ret["out"].keys())[0] == "success"