add tests to genericcomicreader
This commit is contained in:
parent
f5aa37e0c2
commit
ba91601fc7
1 changed files with 12 additions and 0 deletions
|
|
@ -112,3 +112,15 @@ class GenericComicReaderBackend(BaseBackend, ICapGallery):
|
|||
BaseGallery: fill_gallery,
|
||||
BaseImage: fill_image }
|
||||
|
||||
|
||||
class GenericComicReaderTest(BackendTest):
|
||||
def test_download(self):
|
||||
g = self.backend.get_gallery(self.DOWNLOAD_ID)
|
||||
it = self.backend.iter_gallery_images(g)
|
||||
it.next()
|
||||
img = it.next()
|
||||
self.backend.fillobj(img, ('url', 'data'))
|
||||
self.assertTrue(img.url and img.url.startswith('http://'),
|
||||
'URL for first image in gallery "%s" not found: %s' %
|
||||
(img.id, img.url))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue