Skip to content

Commit

Permalink
Add unittest for get/set_lpmode for SFF8472
Browse files Browse the repository at this point in the history
  • Loading branch information
byu343 committed Nov 6, 2024
1 parent 563fd2e commit ba28902
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/sonic_xcvr/test_sff8472.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,3 +290,9 @@ def test_get_transceiver_bulk_status(self, mock_response, expected):
result = self.api.get_transceiver_bulk_status()
assert result == expected

def test_get_lpmode(self):
assert not self.api.get_lpmode()

def test_set_lpmode(self):
assert not self.api.set_lpmode(True)
assert not self.api.set_lpmode(False)

0 comments on commit ba28902

Please sign in to comment.