def METHOD_NAME():
    """
    Test the results returned from the kernel_modules function
    with attributes
    """
    _table_attrs_results = ["address", "name", "size", "status", "used_by"]
    _os_query_results = {
        "data": [
            {"name": "nls_utf8", "status": "Live"},
            {"name": "udf", "status": "Live"},
            {"name": "crc_itu_t", "status": "Live"},
        ],
        "result": True,
    }
    with patch.object(
        osquery, "_table_attrs", MagicMock(return_value=_table_attrs_results)
    ):
        with patch.object(
            osquery, "_osquery", MagicMock(return_value=_os_query_results)
        ):
            with patch.dict(osquery.__grains__, {"os_family": "Debian"}):
                assert (
                    osquery.kernel_modules(attrs=["name", "status"])
                    == _os_query_results
                )