示例#1
0
def test_config():
    with patch(
            "salt.utils.napalm.get_device",
            MagicMock(return_value=napalm_test_support.MockNapalmDevice()),
    ):
        ret = napalm_bgp.config("test_group")
        assert ret["out"] == napalm_test_support.TEST_BGP_CONFIG.copy()
示例#2
0
 def test_config(self):
     ret = napalm_bgp.config("test_group")
     assert ret["out"] is napalm_test_support.TEST_BGP_CONFIG
示例#3
0
 def test_config(self):
     print(123, )
     ret = napalm_bgp.config("test_group")
     assert ret["out"] == napalm_test_support.TEST_BGP_CONFIG.copy()