Add tests for HTML escaping.

This commit is contained in:
Georg Brandl committed 2008-11-23 15:22:09 +01:00
1 parent 410ac72590
commit 91c31181b0
3 files changed
+6 -4

No files matched your search

+2 -2
View File
@@ -37,8 +37,8 @@ source_suffix = '.txt'
master_doc = 'contents'
# General substitutions.
project = 'Sphinx Tests'
copyright = '2008, Georg Brandl'
project = 'Sphinx <Tests>'
copyright = '2008, Georg Brandl & Team'
# The default replacements for |version| and |release|, also used in various
# other places throughout the built documents.
+2
View File
@@ -72,6 +72,8 @@ HTML_XPATH = {
".//td[@class='label']": '[Ref1]',
".//li[@class='toctree-l1']/a": 'Testing various markup',
".//li[@class='toctree-l2']/a": 'Admonitions',
".//title": 'Sphinx <Tests>',
".//div[@class='footer']": 'Georg Brandl & Team',
},
}
+2 -2
View File
@@ -21,7 +21,7 @@ def test_core_config(app):
# simple values
assert 'project' in cfg.__dict__
assert cfg.project == 'Sphinx Tests'
assert cfg.project == 'Sphinx <Tests>'
assert cfg.templates_path == ['_templates']
# overrides
@@ -34,7 +34,7 @@ def test_core_config(app):
# complex default values
assert 'html_title' not in cfg.__dict__
assert cfg.html_title == 'Sphinx Tests v0.4alpha1 documentation'
assert cfg.html_title == 'Sphinx <Tests> v0.4alpha1 documentation'
# complex default values mustn't raise
for valuename in cfg.config_values: