-@with_setup(None, teardown_transform)
-def test_passing_parse_dublincore_to_transform():
- """Passing parse_dublincore=False to transform omits DublinCore parsing."""
- text.transform(
- get_fixture('text', 'asnyk_miedzy_nami_nodc.xml'),
- get_fixture('text', 'asnyk_miedzy_nami.txt'),
- parse_dublincore=False,
- )
+ def test_passing_parse_dublincore_to_transform(self):
+ """Passing parse_dublincore=False to the constructor omits DublinCore parsing."""
+ LegacyWLDocument.from_file(
+ get_fixture('text', 'asnyk_miedzy_nami_nodc.xml'),
+ parse_dublincore=False,
+ ).as_text()