def test_li(self):
        output = []
        spitter = DocbookSpitter(output.append)

        li = Element('li')
        li.appendChild(Element('p'))
        text = Text()
        text.data = 'foo bar'
        li.appendChild(text)

        spitter.visitNode(li)
        self.assertEqual(
            ''.join(output),
            '<listitem><para></para><para>foo bar</para></listitem>')
Test that a QueryFunction object can be constructed with a valid
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/lore/test/test_docbook.py/DocbookSpitterTests.test_li--crossover with--dataset/ETHPy150Open OpenKMIP/PyKMIP/kmip/tests/unit/core/misc/test_misc.py/TestQueryFunction.test_init_with_valid