diff --git a/tests/sonic_xcvr/test_sfp_optoe_base.py b/tests/sonic_xcvr/test_sfp_optoe_base.py new file mode 100644 index 000000000..4fb89255b --- /dev/null +++ b/tests/sonic_xcvr/test_sfp_optoe_base.py @@ -0,0 +1,10 @@ +from unittest.mock import patch +from mock import MagicMock +import pytest +from sonic_platform_base.sonic_xcvr.sfp_optoe_base import SfpOptoeBase + +class TestSfpOptoeBase(object): + optoebase = SfpOptoeBase() + + def test_set_optoe_write_max_with_exception(self): + self.optoebase.set_optoe_write_max(1)