<s> '''<STR_LIT>''' <EOL> import logging <EOL> import os <EOL> import traceback <EOL> import pytest <EOL> import tldextract <EOL> def test_log_snapshot_diff ( mocker ) : <EOL> mocker . patch . object ( logging . getLogger ( ) , '<STR_LIT>' , logging . DEBUG ) <EOL> debug_mock = mocker . patch . object ( logging . getLogger ( '<STR_LIT>' ) , '<STR_LIT>' ) <EOL> extractor = tldextract . TLDExtract ( ) <EOL> try : <EOL> os . remove ( extractor . cache_file ) <EOL> except ( IOError , OSError ) : <EOL> logging . warning ( traceback . format_exc ( ) ) <EOL> extractor ( '<STR_LIT>' ) <EOL> assert debug_mock . call_count == <NUM_LIT:1> <EOL> log_str = debug_mock . call_args [ <NUM_LIT:0> ] [ <NUM_LIT:0> ] <EOL> assert log_str . startswith ( '<STR_LIT>' ) <EOL> def test_bad_kwargs ( ) : <EOL> with pytest . raises ( ValueError ) : <EOL> tldextract . TLDExtract ( <EOL> cache_file = False , suffix_list_urls = False , fallback_to_snapshot = False <EOL> ) </s>
