示例#1
0
def test_lldp():
    with patch(
        "salt.utils.napalm.get_device",
        MagicMock(return_value=napalm_test_support.MockNapalmDevice()),
    ):
        ret = napalm_network.lldp()
        assert ret["out"] == napalm_test_support.TEST_LLDP_NEIGHBORS.copy()
示例#2
0
 def test_lldp(self):
     ret = napalm_network.lldp()
     assert ret['out'] == TEST_LLDP_NEIGHBORS
示例#3
0
 def test_lldp(self):
     ret = napalm_network.lldp()
     assert ret["out"] == napalm_test_support.TEST_LLDP_NEIGHBORS.copy()