bugfix
[librarian.git] / tests / test_html_transform_abstrakt.py
1 # This file is part of Librarian, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Wolne Lektury. See NOTICE for more information.
3 #
4 import unittest
5 from librarian.parser import WLDocument
6 from librarian.html import transform_abstrakt
7 from .utils import get_fixture
8
9
10 class AbstractTests(unittest.TestCase):
11     def test_abstrakt(self):
12         transform_abstrakt(
13             WLDocument.from_file(
14                 get_fixture('text', 'abstrakt.xml'),
15                 parse_dublincore=False
16             ).edoc.getroot().find('.//abstrakt')
17         )