def test_build_speed(mock_module):
    """
    cl_interface - test building speed config
    """
    mock_module.custom_desired_config = {"config": {}}
    mock_module.params = {"speed": 1000}
    cl_int.build_speed(mock_module)
    assert_equals(mock_module.custom_desired_config, {"config": {"link-speed": "1000", "link-duplex": "full"}})
def test_build_speed(mock_module):
    """
    cl_interface - test building speed config
    """
    mock_module.custom_desired_config = {'config': {}}
    mock_module.params = {'speed': 1000}
    cl_int.build_speed(mock_module)
    assert_equals(mock_module.custom_desired_config,
                  {'config': {
                      'link-speed': '1000',
                      'link-duplex': 'full'}})