'Test the :debug-log-filter command handler.'

@pytest.mark.parametrize('category,    logged_before,    logged_after', [('init', True, False), ('url', False, True), ('js', False, True)])
def test_debug_log_filter_cmd(self, monkeypatch, logger, category, logged_before, logged_after):

    logfilter = log.LogFilter(['init'])
    monkeypatch.setattr(log, 'console_filter', logfilter)
    record = self._make_record(logger, category)
    assert (logfilter.filter(record) == logged_before)
    utilcmds.debug_log_filter('url,js')
    assert (logfilter.filter(record) == logged_after)
