Example #1
0
 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'
Example #2
0
 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'