2016-01-08 01:00:26 -06:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
"""
|
|
|
|
test_build_manpage
|
|
|
|
~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
Test the build process with manpage builder with the test root.
|
|
|
|
|
2016-01-14 15:54:04 -06:00
|
|
|
:copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
|
2016-01-08 01:00:26 -06:00
|
|
|
:license: BSD, see LICENSE for details.
|
|
|
|
"""
|
|
|
|
from __future__ import print_function
|
|
|
|
|
|
|
|
from util import with_app
|
|
|
|
|
|
|
|
|
|
|
|
@with_app(buildername='man')
|
|
|
|
def test_all(app, status, warning):
|
|
|
|
app.builder.build_all()
|
|
|
|
assert (app.outdir / 'SphinxTests.1').exists()
|
|
|
|
|
|
|
|
content = (app.outdir / 'SphinxTests.1').text()
|
|
|
|
assert r'\fBprint \fP\fIi\fP\fB\en\fP' in content
|