def test_srtmdownload(self): # this zone does exist and file should be small enough for download zone = '68_11' fp = utils._download_srtm_file(zone) self.assertTrue(os.path.exists(fp)) fp = utils._download_srtm_file(zone) self.assertTrue(os.path.exists(fp))
def test_srtmdownloadfails(self): # this zone does not exist zone = '41_20' self.assertTrue(utils._download_srtm_file(zone) is None)