@@ -1044,7 +1044,7 @@ def test_get_module_fw_info(self, mock_response, expected):
1044
1044
if result ['status' ] == False : # Check 'result' when 'status' == False for distinguishing error type.
1045
1045
assert result ['result' ] == expected ['result' ]
1046
1046
assert result ['status' ] == expected ['status' ]
1047
-
1047
+
1048
1048
@pytest .mark .parametrize ("input_param, mock_response, expected" , [
1049
1049
(1 , 1 , (True , 'Module FW run: Success\n ' )),
1050
1050
(1 , 64 , (False , 'Module FW run: Fail\n FW_run_status 64\n ' )),
@@ -2006,7 +2006,8 @@ def test_get_application_advertisement(self):
2006
2006
consts .MODULE_MEDIA_INTERFACE_SM + "_1" : "400GBASE-DR4 (Cl 124)" ,
2007
2007
consts .MEDIA_LANE_COUNT + "_1" : 4 ,
2008
2008
consts .HOST_LANE_COUNT + "_1" : 8 ,
2009
- consts .HOST_LANE_ASSIGNMENT_OPTION + "_1" : 0x01
2009
+ consts .HOST_LANE_ASSIGNMENT_OPTION + "_1" : 0x01 ,
2010
+ consts .MEDIA_LANE_ASSIGNMENT_OPTION + "_1" : 0x02
2010
2011
},
2011
2012
Sff8024 .MODULE_MEDIA_TYPE [2 ]
2012
2013
]
@@ -2018,6 +2019,7 @@ def test_get_application_advertisement(self):
2018
2019
assert result [1 ]['host_lane_count' ] == 8
2019
2020
assert result [1 ]['media_lane_count' ] == 4
2020
2021
assert result [1 ]['host_lane_assignment_options' ] == 0x01
2022
+ assert result [1 ]['media_lane_assignment_options' ] == 0x02
2021
2023
2022
2024
def test_get_application_advertisement_non_support (self ):
2023
2025
self .api .xcvr_eeprom .read = MagicMock (return_value = None )
0 commit comments