- """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,
- )
+ """Passing parse_dublincore=False to the constructor omits DublinCore parsing."""
+ WLDocument.from_file(
+ get_fixture('text', 'asnyk_miedzy_nami_nodc.xml'),
+ parse_dublincore=False,
+ ).as_text()