summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorgeorg.brandl <devnull@localhost>2008-10-16 19:43:15 +0000
committergeorg.brandl <devnull@localhost>2008-10-16 19:43:15 +0000
commit750341fb8c1b31022c2f3b205c333a46b0b85876 (patch)
treecabdfdaff3ea57c55a12298393ba09bcf177109c /tests
parenta696fcb00143bc01ade9046e9617bd3d0b295593 (diff)
downloadsphinx-750341fb8c1b31022c2f3b205c333a46b0b85876.tar.gz
Properly escape authors and titles put into quickstart latex_documents setting.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_quickstart.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test_quickstart.py b/tests/test_quickstart.py
index 9514c885..a76a1cdf 100644
--- a/tests/test_quickstart.py
+++ b/tests/test_quickstart.py
@@ -110,7 +110,7 @@ def test_quickstart_all_answers(tempdir):
'Separate source and build': 'y',
'Name prefix for templates': '_',
'Project name': 'STASI\xe2\x84\xa2',
- 'Author name': 'Wolfgang Sch\xc3\xa4uble',
+ 'Author name': 'Wolfgang Sch\xc3\xa4uble & G. Beckstein',
'Project version': '2.0',
'Project release': '2.0.1',
'Source file suffix': '.txt',
@@ -133,13 +133,14 @@ def test_quickstart_all_answers(tempdir):
assert ns['source_suffix'] == '.txt'
assert ns['master_doc'] == 'contents'
assert ns['project'] == u'STASI™'
- assert ns['copyright'] == u'%s, Wolfgang Schäuble' % time.strftime('%Y')
+ assert ns['copyright'] == u'%s, Wolfgang Schäuble & G. Beckstein' % \
+ time.strftime('%Y')
assert ns['version'] == '2.0'
assert ns['release'] == '2.0.1'
assert ns['html_static_path'] == ['_static']
assert ns['latex_documents'] == [
('contents', 'STASI.tex', u'STASI™ Documentation',
- u'Wolfgang Schäuble', 'manual')]
+ ur'Wolfgang Schäuble \& G. Beckstein', 'manual')]
assert (tempdir / 'build').isdir()
assert (tempdir / 'source' / '_static').isdir()