def METHOD_NAME():
    """
    Tests return a list of the loaded module names
    """
    with patch(
        "salt.modules.kmod._get_modules_conf",
        MagicMock(return_value="/etc/modules"),
    ):
        with patch(
            "salt.modules.kmod._strip_module_name", MagicMock(return_value="lp")
        ):
            assert ["lp"] == kmod.mod_list(True)
    mock_ret = [{"size": 100, "module": None, "depcount": 10, "deps": None}]
    with patch("salt.modules.kmod.lsmod", MagicMock(return_value=mock_ret)):
        assert [None] == kmod.mod_list(False)