def test_download_dem3_viewpano(self): # this zone does exist and file should be small enough for download zone = 'L32' fp = utils._download_dem3_viewpano(zone) self.assertTrue(os.path.exists(fp)) zone = 'U44' fp = utils._download_dem3_viewpano(zone) self.assertTrue(os.path.exists(fp))
def test_download_dem3_viewpano(self): # this zone does exist and file should be small enough for download zone = 'L32' fp = utils._download_dem3_viewpano(zone, {}) self.assertTrue(os.path.exists(fp)) zone = 'U44' fp = utils._download_dem3_viewpano(zone, {}) self.assertTrue(os.path.exists(fp))
def test_download_dem3_viewpano_fails(self): # this zone does not exist zone = 'dummy' fp = utils._download_dem3_viewpano(zone) self.assertTrue(fp is None)
def test_download_dem3_viewpano_fails(self): # this zone does not exist zone = 'SZ20' self.assertTrue(utils._download_dem3_viewpano(zone, {}) is None)