summaryrefslogtreecommitdiff
path: root/tests/test_util.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2017-12-07 15:45:29 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2017-12-12 18:24:53 +0900
commit07c5348a56471201b5901881b0d9d83f4823a6fd (patch)
tree85cf5573c3d230512887fd4b1d90216cba78130e /tests/test_util.py
parent773173b11f04f08547999c0799911fc7aa96d0d3 (diff)
downloadsphinx-git-07c5348a56471201b5901881b0d9d83f4823a6fd.tar.gz
Add test_io.py
Diffstat (limited to 'tests/test_util.py')
-rw-r--r--tests/test_util.py25
1 files changed, 1 insertions, 24 deletions
diff --git a/tests/test_util.py b/tests/test_util.py
index 84ce44007..aae54eaf0 100644
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -14,8 +14,7 @@ from mock import patch
from sphinx.util import logging
from sphinx.util import (
- display_chunk, encode_uri, parselinenos, split_docinfo, status_iterator,
- xmlname_checker
+ display_chunk, encode_uri, parselinenos, status_iterator, xmlname_checker
)
from sphinx.testing.util import strip_escseq
@@ -36,28 +35,6 @@ def test_encode_uri():
assert expected, encode_uri(uri)
-def test_splitdocinfo():
- source = "Hello world.\n"
- docinfo, content = split_docinfo(source)
- assert docinfo == ''
- assert content == 'Hello world.\n'
-
- source = ":orphan:\n\nHello world.\n"
- docinfo, content = split_docinfo(source)
- assert docinfo == ':orphan:\n'
- assert content == '\nHello world.\n'
-
- source = ":author: Georg Brandl\n:title: Manual of Sphinx\n\nHello world.\n"
- docinfo, content = split_docinfo(source)
- assert docinfo == ':author: Georg Brandl\n:title: Manual of Sphinx\n'
- assert content == '\nHello world.\n'
-
- source = ":multiline: one\n\ttwo\n\tthree\n\nHello world.\n"
- docinfo, content = split_docinfo(source)
- assert docinfo == ":multiline: one\n\ttwo\n\tthree\n"
- assert content == '\nHello world.\n'
-
-
def test_display_chunk():
assert display_chunk('hello') == 'hello'
assert display_chunk(['hello']) == 'hello'