def test_interfaces():
    with patch(
        "salt.utils.napalm.get_device",
        MagicMock(return_value=napalm_test_support.MockNapalmDevice()),
    ):
        ret = napalm_network.interfaces()
        assert ret["out"] == napalm_test_support.TEST_INTERFACES.copy()
Example #2
0
 def test_interfaces(self):
     ret = napalm_network.interfaces()
     assert ret['out'] == TEST_INTERFACES
Example #3
0
 def test_interfaces(self):
     ret = napalm_network.interfaces()
     assert ret["out"] == napalm_test_support.TEST_INTERFACES.copy()