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 librarian import NoDublinCore
7 from librarian.parser import WLDocument
8 from nose.tools import *
9 from utils import get_fixture
13 expected_output_file_path = get_fixture('text', 'asnyk_miedzy_nami_expected.txt')
15 text = WLDocument.from_file(
16 get_fixture('text', 'miedzy-nami-nic-nie-bylo.xml')
17 ).as_text().get_string()
19 assert_equal(text, file(expected_output_file_path).read())
23 def test_no_dublincore():
25 get_fixture('text', 'asnyk_miedzy_nami_nodc.xml')
29 def test_passing_parse_dublincore_to_transform():
30 """Passing parse_dublincore=False to the constructor omits DublinCore parsing."""
32 get_fixture('text', 'asnyk_miedzy_nami_nodc.xml'),
33 parse_dublincore=False,