summaryrefslogtreecommitdiff
path: root/tests/test_util.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_util.py')
-rw-r--r--tests/test_util.py26
1 files changed, 1 insertions, 25 deletions
diff --git a/tests/test_util.py b/tests/test_util.py
index d55de7f5c..189e221b2 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'
@@ -118,7 +95,6 @@ def test_parselinenos():
parselinenos('3-1', 10)
-
def test_xmlname_check():
checker = xmlname_checker()
assert checker.match('id-pub')