Exemplo n.º 1
0
def test_config():
    with patch(
            "salt.utils.napalm.get_device",
            MagicMock(return_value=napalm_test_support.MockNapalmDevice()),
    ):
        ret = napalm_users.config()
        assert ret["out"] == napalm_test_support.TEST_USERS.copy()
Exemplo n.º 2
0
 def test_config(self):
     ret = napalm_users.config()
     assert ret['out'] == napalm_test_support.TEST_USERS
Exemplo n.º 3
0
 def test_config(self):
     ret = napalm_users.config()
     assert ret["out"] == napalm_test_support.TEST_USERS.copy()