def test_arp():
    with patch(
        "salt.utils.napalm.get_device",
        MagicMock(return_value=napalm_test_support.MockNapalmDevice()),
    ):
        ret = napalm_network.arp()
        assert ret["out"] == napalm_test_support.TEST_ARP_TABLE.copy()
Exemple #2
0
 def test_arp(self):
     ret = napalm_network.arp()
     assert ret['out'] == TEST_ARP_TABLE
Exemple #3
0
 def test_arp(self):
     ret = napalm_network.arp()
     assert ret["out"] == napalm_test_support.TEST_ARP_TABLE.copy()