def test_combine_multiples(self): bad_img_path = [dcm_path, img_path] self.assertRaises(AttributeError, Image.combine_multiples, bad_img_path) good_img_path = [img_path, img_path] combined_img = Image.combine_multiples(good_img_path) self.assertIsInstance(combined_img, Image)
def load_multiple_images(self, filepath_list): """Load multiple images via the file path. .. versionadded:: 0.5.1 Parameters ---------- filepath_list : sequence An iterable sequence of filepath locations. """ self.image = Image.combine_multiples(filepath_list)