diff options
| author | grubert <grubert@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2019-08-19 19:31:52 +0000 |
|---|---|---|
| committer | grubert <grubert@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2019-08-19 19:31:52 +0000 |
| commit | 644f6cfb8cf61ed497db8e809fe1cbd32b283bd8 (patch) | |
| tree | 32b63a94b2b03e82e1113a45f992dca1d0fece23 /docutils | |
| parent | 3252e2b2a6e4d2a05b998c891154af06f4ea6904 (diff) | |
| download | docutils-644f6cfb8cf61ed497db8e809fe1cbd32b283bd8.tar.gz | |
Add odt regression test for literal block
Fix: xml.etree.ElementTree Element.getchildren deprecated warning
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8314 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils')
| -rw-r--r-- | docutils/test/functional/expected/odt_literal_block.odt | bin | 0 -> 9102 bytes | |||
| -rw-r--r-- | docutils/test/functional/input/odt_literal_block.txt | 4 | ||||
| -rwxr-xr-x | docutils/test/test_writers/test_odt.py | 3 |
3 files changed, 7 insertions, 0 deletions
diff --git a/docutils/test/functional/expected/odt_literal_block.odt b/docutils/test/functional/expected/odt_literal_block.odt Binary files differnew file mode 100644 index 000000000..2a351ab4c --- /dev/null +++ b/docutils/test/functional/expected/odt_literal_block.odt diff --git a/docutils/test/functional/input/odt_literal_block.txt b/docutils/test/functional/input/odt_literal_block.txt new file mode 100644 index 000000000..2fb4d066d --- /dev/null +++ b/docutils/test/functional/input/odt_literal_block.txt @@ -0,0 +1,4 @@ +literal block :: + + ~~~ ><> ~~ <>< ~~~ + diff --git a/docutils/test/test_writers/test_odt.py b/docutils/test/test_writers/test_odt.py index 22666329f..1276be32c 100755 --- a/docutils/test/test_writers/test_odt.py +++ b/docutils/test/test_writers/test_odt.py @@ -196,6 +196,9 @@ class DocutilsOdtTestCase(DocutilsTestSupport.StandardTestCase): save_output_name='odt_custom_headfoot.odt' ) + def test_odt_literal_block(self): + self.process_test('odt_literal_block.txt', 'odt_literal_block.odt') + # # Template for new tests. # Also add functional/input/odt_xxxx.txt and |
