def test_create_loader_archive_type_but_not_archive(self):
     for archive_format in [".cbt", ".cbr", "cbz"]:
         with self.subTest(archive_format=archive_format):
             with self.assertRaises(InvalidTypeFileException):
                 loader = ComicLoaderFactory.create_loader(
                     "test"+archive_format
                 )
	def test_create_loader_archive_type_but_not_archive(self):
		for archive_format in [".cbt", ".cbr", "cbz"]:
			with self.subTest(archive_format=archive_format):
				with self.assertRaises(InvalidTypeFileException):
					loader = ComicLoaderFactory.create_loader(
						"test"+archive_format
					)
 def test_create_loader_images(self):
     for image_format in IMAGE_FILE_FORMATS:
         with self.subTest(image_format=image_format):
             loader = ComicLoaderFactory.create_loader("test" +
                                                       image_format)
             self.assertTrue(isinstance(loader, ComicImageLoader))
 def test_create_loader_tar(self):
     loader = ComicLoaderFactory.create_loader("test.tar")
     self.assertTrue(isinstance(loader, ComicTarLoader))
 def test_create_loader_zip(self):
     loader = ComicLoaderFactory.create_loader("test.zip")
     self.assertTrue(isinstance(loader, ComicZipLoader))
 def test_create_loader_invalid_type(self):
     with self.assertRaises(InvalidTypeFileException):
         ComicLoaderFactory.create_loader("test.sh")
 def test_create_loader_images(self):
     for image_format in IMAGE_FILE_FORMATS:
         with self.subTest(image_format=image_format):
             loader = ComicLoaderFactory.create_loader("test"+image_format)
             self.assertTrue(isinstance(loader, ComicImageLoader))
 def test_create_loader_tar(self):
     loader = ComicLoaderFactory.create_loader("test.tar")
     self.assertTrue(isinstance(loader, ComicTarLoader))
 def test_create_loader_zip(self):
     loader = ComicLoaderFactory.create_loader("test.zip")
     self.assertTrue(isinstance(loader, ComicZipLoader))
 def test_create_loader_invalid_type(self):
     with self.assertRaises(InvalidTypeFileException):
         ComicLoaderFactory.create_loader("test.sh")