def test__url_to_filepath(self): filepath1 = local_cache_dir + "/" + sha1(url).hexdigest() + ".txt" teller = ATM(local_cache_dir) filepath2 = teller._url_to_filepath(url, interval_string=None) # remove cache directory shutil.rmtree(local_cache_dir) # test assert filepath1 == filepath2
def test__url_to_filepath(self): filepath1 = local_cache_dir + '/' + sha1(url).hexdigest() + '.txt' teller = ATM(local_cache_dir) filepath2 = teller._url_to_filepath(url, interval_string=None) # remove cache directory shutil.rmtree(local_cache_dir) # test assert filepath1 == filepath2