コード例 #1
0
def test_config():
    with patch(
        "salt.utils.napalm.get_device",
        MagicMock(return_value=napalm_test_support.MockNapalmDevice()),
    ):
        ret = napalm_network.config("running")
        assert ret["out"] == napalm_test_support.TEST_RUNNING_CONFIG.copy()
コード例 #2
0
 def test_config(self):
     ret = napalm_network.config('running')
     assert ret['out'] == TEST_RUNNING_CONFIG
コード例 #3
0
 def test_config(self):
     ret = napalm_network.config("running")
     assert ret["out"] == napalm_test_support.TEST_RUNNING_CONFIG.copy()