def test_hi2isis_without_to(self): sweet_img = self.img.with_name('sweet.img') shutil.copy(self.img, sweet_img) tocube = sweet_img.with_suffix('.cub') isis.hi2isis(sweet_img) self.assertTrue(tocube.is_file()) tocube.unlink() sweet_img.unlink()
def setUp(self): self.cub = Path('test_sweetened_getkey.cub') isis.hi2isis(HiRISE_img, to=self.cub)
def test_hi2isis_with_to(self): tocube = Path('test_sweetened_hi2isis.cub') isis.hi2isis(self.img, to=tocube) self.assertTrue(tocube.is_file()) tocube.unlink()