- transform_abstrakt(
- WLDocument.from_file(
- get_fixture('text', 'abstrakt.xml'),
- parse_dublincore=False
- ).edoc.getroot().find('.//abstrakt')
- )
+ builder = AbstraktHtmlBuilder()
+ got = builder.build(
+ WLDocument(
+ filename=get_fixture('text', 'abstrakt.xml'),
+ )
+ ).get_bytes().decode('utf-8')
+ with open(get_fixture('text', 'abstrakt.expected.html')) as f:
+ expected = f.read()
+ self.assertEqual(expected, got)