1 # This file is part of Librarian, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Wolne Lektury. See NOTICE for more information.
5 from zipfile import ZipFile
7 from librarian import DirDocProvider
8 from librarian.builders import MobiBuilder
9 from librarian.document import WLDocument
10 from tests.utils import get_fixture
13 class MobiTests(unittest.TestCase):
14 def test_transform(self):
15 mobi = MobiBuilder().build(
17 get_fixture('text', 'asnyk_zbior.xml'),
18 provider=DirDocProvider(get_fixture('text', ''))