class RefTests(TestCase):
def test_snippet(self):
doc = WLDocument(filename=get_fixture('text', 'miedzy-nami-nic-nie-bylo.xml'))
- doc._compat_assign_section_ids()
+ doc.assign_ids()
refs = []
for ref in doc.references():
snippet = ref.get_snippet()
- b = builders['html']()
+ b = builders['html-snippet']()
for s in snippet:
s.html_build(b)