def test_environment():
    with patch(
        "salt.utils.napalm.get_device",
        MagicMock(return_value=napalm_test_support.MockNapalmDevice()),
    ):
        ret = napalm_network.environment()
        assert ret["out"] == napalm_test_support.TEST_ENVIRONMENT.copy()
Beispiel #2
0
 def test_environment(self):
     ret = napalm_network.environment()
     assert ret['out'] == TEST_ENVIRONMENT
Beispiel #3
0
 def test_environment(self):
     ret = napalm_network.environment()
     assert ret["out"] == napalm_test_support.TEST_ENVIRONMENT.copy()