def test_dl(self): dest = os.path.join(self.tmp, 'out.txt') Cache.dl(self.url, dest) assert os.path.exists(dest) assert open(dest).read() == 'abc'