diff --git a/modules/batoto/test.py b/modules/batoto/test.py
index b715bc95..46db6590 100644
--- a/modules/batoto/test.py
+++ b/modules/batoto/test.py
@@ -17,7 +17,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see .
-from weboob.tools.capabilities.gallery.genericcomicreader import GenericComicReaderTest
+from weboob.tools.capabilities.gallery.genericcomicreadertest import GenericComicReaderTest
class BatotoTest(GenericComicReaderTest):
diff --git a/modules/eatmanga/test.py b/modules/eatmanga/test.py
index b9fc2cfb..93e0d047 100644
--- a/modules/eatmanga/test.py
+++ b/modules/eatmanga/test.py
@@ -17,7 +17,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see .
-from weboob.tools.capabilities.gallery.genericcomicreader import GenericComicReaderTest
+from weboob.tools.capabilities.gallery.genericcomicreadertest import GenericComicReaderTest
class EatmangaTest(GenericComicReaderTest):
diff --git a/modules/mangafox/test.py b/modules/mangafox/test.py
index ddb0a3f7..828eaa1c 100644
--- a/modules/mangafox/test.py
+++ b/modules/mangafox/test.py
@@ -18,7 +18,7 @@
# along with weboob. If not, see .
-from weboob.tools.capabilities.gallery.genericcomicreader import GenericComicReaderTest
+from weboob.tools.capabilities.gallery.genericcomicreadertest import GenericComicReaderTest
class MangafoxTest(GenericComicReaderTest):
diff --git a/modules/mangahere/test.py b/modules/mangahere/test.py
index 7d805191..f968dc2d 100644
--- a/modules/mangahere/test.py
+++ b/modules/mangahere/test.py
@@ -17,7 +17,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see .
-from weboob.tools.capabilities.gallery.genericcomicreader import GenericComicReaderTest
+from weboob.tools.capabilities.gallery.genericcomicreadertest import GenericComicReaderTest
class MangahereTest(GenericComicReaderTest):
diff --git a/modules/mangareader/test.py b/modules/mangareader/test.py
index 2335a63c..7bd8374a 100644
--- a/modules/mangareader/test.py
+++ b/modules/mangareader/test.py
@@ -17,7 +17,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see .
-from weboob.tools.capabilities.gallery.genericcomicreader import GenericComicReaderTest
+from weboob.tools.capabilities.gallery.genericcomicreadertest import GenericComicReaderTest
class MangareaderTest(GenericComicReaderTest):
diff --git a/modules/simplyreadit/test.py b/modules/simplyreadit/test.py
index 57aac411..8ce485cd 100644
--- a/modules/simplyreadit/test.py
+++ b/modules/simplyreadit/test.py
@@ -17,7 +17,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see .
-from weboob.tools.capabilities.gallery.genericcomicreader import GenericComicReaderTest
+from weboob.tools.capabilities.gallery.genericcomicreadertest import GenericComicReaderTest
class SimplyreaditTest(GenericComicReaderTest):
diff --git a/weboob/tools/capabilities/gallery/genericcomicreader.py b/weboob/tools/capabilities/gallery/genericcomicreader.py
index f3b52527..850e557f 100644
--- a/weboob/tools/capabilities/gallery/genericcomicreader.py
+++ b/weboob/tools/capabilities/gallery/genericcomicreader.py
@@ -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'))
diff --git a/weboob/tools/capabilities/gallery/genericcomicreadertest.py b/weboob/tools/capabilities/gallery/genericcomicreadertest.py
new file mode 100644
index 00000000..5607cfeb
--- /dev/null
+++ b/weboob/tools/capabilities/gallery/genericcomicreadertest.py
@@ -0,0 +1,29 @@
+# -*- coding: utf-8 -*-
+
+# Copyright(C) 2010-2011 NoƩ Rubinstein
+#
+# This file is part of weboob.
+#
+# weboob is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# weboob is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with weboob. If not, see .
+
+from weboob.tools.test import BackendTest
+
+
+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'))