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