Пример #1
0
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()
Пример #2
0
 def test_environment(self):
     ret = napalm_network.environment()
     assert ret['out'] == TEST_ENVIRONMENT
Пример #3
0
 def test_environment(self):
     ret = napalm_network.environment()
     assert ret["out"] == napalm_test_support.TEST_ENVIRONMENT.copy()