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