def test_loading(self): # test normal construction with TemporaryZipDirectory(self.stack_location) as tmpzip: dstack = DicomImageStack(tmpzip) self.assertEqual(len(dstack), 64) # test zip dstack = DicomImageStack.from_zip(self.stack_location)
def test_mixed_studies(self): mixed_study_zip = osp.join(test_dir, 'CBCT', 'mixed_studies.zip') with self.assertRaises(ValueError): DicomImageStack.from_zip(mixed_study_zip)
def test_mixed_studies(self): mixed_study_zip = get_file_from_cloud_test_repo(['CBCT', 'mixed_studies.zip']) with self.assertRaises(ValueError): DicomImageStack.from_zip(mixed_study_zip)