Fix transform_abstracy + tests.
[librarian.git] / tests / test_html_transform_abstrakt.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.parser import WLDocument
9 from librarian.html import transform_abstrakt
10 from nose.tools import *
11 from .utils import get_fixture
12
13
14 def test_fragments():
15     transform_abstrakt(
16         WLDocument.from_file(
17             get_fixture('text', 'abstrakt.xml'),
18             parse_dublincore=False
19         ).edoc.getroot().find('.//abstrakt')
20     )