コード例 #1
0
def test_optics():
    with patch(
        "salt.utils.napalm.get_device",
        MagicMock(return_value=napalm_test_support.MockNapalmDevice()),
    ):
        ret = napalm_network.optics()
        assert ret["out"] == napalm_test_support.TEST_OPTICS.copy()
コード例 #2
0
 def test_optics(self):
     ret = napalm_network.optics()
     assert ret['out'] == TEST_OPTICS
コード例 #3
0
 def test_optics(self):
     ret = napalm_network.optics()
     assert ret["out"] == napalm_test_support.TEST_OPTICS.copy()