Split GenerericComicReaderTest to stop requiring nose for module usage

This commit is contained in:
Laurent Bachelier 2012-10-24 13:38:21 +02:00
commit b67a4eefe5
8 changed files with 35 additions and 16 deletions

View file

@ -24,7 +24,6 @@ import re
from weboob.capabilities.gallery import ICapGallery, BaseGallery, BaseImage
from weboob.tools.backend import BaseBackend
from weboob.tools.browser import BaseBrowser, BasePage
from weboob.tools.test import BackendTest
__all__ = ['GenericComicReaderBackend']
@ -117,12 +116,3 @@ class GenericComicReaderBackend(BaseBackend, ICapGallery):
OBJECTS = {
BaseGallery: fill_gallery,
BaseImage: fill_image}
class GenericComicReaderTest(BackendTest):
def _test_download(self, _id):
g = self.backend.get_gallery(_id)
it = self.backend.iter_gallery_images(g)
it.next()
img = it.next()
self.backend.fillobj(img, ('url', 'data'))