Ejemplo n.º 1
0
def test_neighbors():
    with patch(
            "salt.utils.napalm.get_device",
            MagicMock(return_value=napalm_test_support.MockNapalmDevice()),
    ):
        ret = napalm_bgp.neighbors("test_address")
        assert ret["out"] == napalm_test_support.TEST_BGP_NEIGHBORS.copy()
Ejemplo n.º 2
0
 def test_neighbors(self):
     ret = napalm_bgp.neighbors("test_address")
     assert ret["out"] is napalm_test_support.TEST_BGP_NEIGHBORS