示例#1
0
def test_config_control():
    with patch(
        "salt.utils.napalm.get_device",
        MagicMock(return_value=napalm_test_support.MockNapalmDevice()),
    ):
        ret = napalm_network.config_control()
        assert ret == (True, "")
示例#2
0
 def test_config_control(self):
     ret = napalm_network.config_control()
     assert ret == (True, '')