diff options
Diffstat (limited to 'lib/python2.7/site-packages/Twisted-12.2.0-py2.7-linux-x86_64.egg/twisted/lore/test/test_docbook.py')
-rwxr-xr-x | lib/python2.7/site-packages/Twisted-12.2.0-py2.7-linux-x86_64.egg/twisted/lore/test/test_docbook.py | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/lib/python2.7/site-packages/Twisted-12.2.0-py2.7-linux-x86_64.egg/twisted/lore/test/test_docbook.py b/lib/python2.7/site-packages/Twisted-12.2.0-py2.7-linux-x86_64.egg/twisted/lore/test/test_docbook.py deleted file mode 100755 index 4bec127f..00000000 --- a/lib/python2.7/site-packages/Twisted-12.2.0-py2.7-linux-x86_64.egg/twisted/lore/test/test_docbook.py +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright (c) Twisted Matrix Laboratories. -# See LICENSE for details. - -""" -Tests for L{twisted.lore.docbook}. -""" - -from xml.dom.minidom import Element, Text - -from twisted.trial.unittest import TestCase -from twisted.lore.docbook import DocbookSpitter - - -class DocbookSpitterTests(TestCase): - """ - Tests for L{twisted.lore.docbook.DocbookSpitter}. - """ - def test_li(self): - """ - L{DocbookSpitter} wraps any non-I{p} elements found intside any I{li} - elements with I{p} elements. - """ - 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>') |