def test_log_snapshot_diff(mocker):
    mocker.patch.object(logging.getLogger(), 'level', logging.DEBUG)
    debug_mock = mocker.patch.object(logging.getLogger('tldextract'), 'debug')

    extractor = tldextract.TLDExtract()
    try:
        os.remove(extractor.cache_file)
    except (IOError, __HOLE__):
        logging.warning(traceback.format_exc())

    extractor('ignore.com')

    assert debug_mock.call_count == 1
    log_str = debug_mock.call_args[0][0]
    assert log_str.startswith('computed TLD diff')
dataset/ETHPy150Open john-kurkowski/tldextract/tests/integration_test.py/test_log_snapshot_diff