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 librarian import NoDublinCore
9 from librarian.parser import WLDocument
10 from nose.tools import *
11 from .utils import get_fixture
15 expected_output_file_path = get_fixture('text', 'asnyk_miedzy_nami_expected.fb2')
17 text = WLDocument.from_file(
18 get_fixture('text', 'miedzy-nami-nic-nie-bylo.xml')
19 ).as_fb2().get_bytes()
21 assert_equal(text, open(expected_output_file_path, 'rb').read())