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()
def test_optics(self): ret = napalm_network.optics() assert ret['out'] == TEST_OPTICS
def test_optics(self): ret = napalm_network.optics() assert ret["out"] == napalm_test_support.TEST_OPTICS.copy()