- html.transform(
- get_fixture('text', 'asnyk_miedzy_nami_nodc.xml'),
- get_fixture('text', 'asnyk_miedzy_nami.html'),
- parse_dublincore=False,
- )
+ WLDocument.from_file(
+ get_fixture('text', 'asnyk_miedzy_nami_nodc.xml'),
+ parse_dublincore=False,
+ ).as_html()
+
+
+def test_empty():
+ assert not WLDocument.from_bytes(
+ b'<utwor />',
+ parse_dublincore=False,
+ ).as_html()