fix
[librarian.git] / tests / test_ref.py
index 2383866..2a54fb5 100644 (file)
@@ -11,12 +11,12 @@ from lxml import etree
 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)