1 # -*- coding: utf-8 -*-
3 # This file is part of Librarian, licensed under GNU Affero GPLv3 or later.
4 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
6 from __future__ import unicode_literals
8 from zipfile import ZipFile
10 from nose.tools import *
11 from librarian import DirDocProvider
12 from librarian.parser import WLDocument
13 from tests.utils import get_fixture
17 mobi = WLDocument.from_file(
18 get_fixture('text', 'asnyk_zbior.xml'),
19 provider=DirDocProvider(get_fixture('text', ''))
20 ).as_mobi(converter_path='true').get_file()