Don't validate <uwaga> contents
[librarian.git] / tests / test_fb2.py
1 # -*- coding: utf-8 -*-
2 #
3 # This file is part of Librarian, licensed under GNU Affero GPLv3 or later.
4 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
5 #
6 from __future__ import unicode_literals
7
8 from librarian import NoDublinCore
9 from librarian.parser import WLDocument
10 from nose.tools import *
11 from .utils import get_fixture
12
13
14 def test_transform():
15     expected_output_file_path = get_fixture('text', 'asnyk_miedzy_nami_expected.fb2')
16
17     text = WLDocument.from_file(
18             get_fixture('text', 'miedzy-nami-nic-nie-bylo.xml')
19         ).as_fb2().get_bytes()
20
21     assert_equal(text, open(expected_output_file_path, 'rb').read())
22