diff options
| author | Georg Brandl <georg@python.org> | 2008-11-23 15:22:09 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2008-11-23 15:22:09 +0100 |
| commit | 980d7f71956e854e63ceb896bc5c7a1f1c509c39 (patch) | |
| tree | 87ddb1539a3fce8df4b757ffd82d39a7eb171e11 /tests | |
| parent | 093b708637798edde63918afa14c0598c18628f5 (diff) | |
| download | sphinx-980d7f71956e854e63ceb896bc5c7a1f1c509c39.tar.gz | |
Add tests for HTML escaping.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/root/conf.py | 4 | ||||
| -rw-r--r-- | tests/test_build.py | 2 | ||||
| -rw-r--r-- | tests/test_config.py | 4 |
3 files changed, 6 insertions, 4 deletions
diff --git a/tests/root/conf.py b/tests/root/conf.py index 8b4419f5..12951d03 100644 --- a/tests/root/conf.py +++ b/tests/root/conf.py @@ -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. diff --git a/tests/test_build.py b/tests/test_build.py index 069d7116..2ecd6550 100644 --- a/tests/test_build.py +++ b/tests/test_build.py @@ -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', }, } diff --git a/tests/test_config.py b/tests/test_config.py index 3b9ea692..57d1936b 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -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: |
