1 # This file is part of Librarian, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Wolne Lektury. See NOTICE for more information.
5 from librarian.document import WLDocument
6 from librarian.builders.html import AbstraktHtmlBuilder
7 from .utils import get_fixture
10 class AbstractTests(unittest.TestCase):
11 def test_abstrakt(self):
12 builder = AbstraktHtmlBuilder()
15 filename=get_fixture('text', 'abstrakt.xml'),
17 ).get_bytes().decode('utf-8')
18 with open(get_fixture('text', 'abstrakt.expected.html')) as f:
20 self.assertEqual(expected, got)