Esempio n. 1
0
def test_compare_config():
    with patch(
        "salt.utils.napalm.get_device",
        MagicMock(return_value=napalm_test_support.MockNapalmDevice()),
    ):
        ret = napalm_network.compare_config()
        assert ret["out"] == napalm_test_support.TEST_RUNNING_CONFIG.copy()
Esempio n. 2
0
 def test_compare_config(self):
     ret = napalm_network.compare_config()
     assert ret['out'] == TEST_RUNNING_CONFIG
Esempio n. 3
0
 def test_compare_config(self):
     ret = napalm_network.compare_config()
     assert ret["out"] == napalm_test_support.TEST_RUNNING_CONFIG.copy()