示例#1
0
def test_mac():
    with patch(
        "salt.utils.napalm.get_device",
        MagicMock(return_value=napalm_test_support.MockNapalmDevice()),
    ):
        ret = napalm_network.mac()
        assert ret["out"] == napalm_test_support.TEST_MAC_TABLE.copy()
示例#2
0
 def test_mac(self):
     ret = napalm_network.mac()
     assert ret['out'] == TEST_MAC_TABLE
示例#3
0
 def test_mac(self):
     ret = napalm_network.mac()
     assert ret["out"] == napalm_test_support.TEST_MAC_TABLE.copy()