summaryrefslogtreecommitdiff
path: root/tests/test_build_manpage.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_build_manpage.py')
-rw-r--r--tests/test_build_manpage.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/test_build_manpage.py b/tests/test_build_manpage.py
new file mode 100644
index 000000000..26fa8c494
--- /dev/null
+++ b/tests/test_build_manpage.py
@@ -0,0 +1,23 @@
+# -*- coding: utf-8 -*-
+"""
+ test_build_manpage
+ ~~~~~~~~~~~~~~~~~~
+
+ Test the build process with manpage builder with the test root.
+
+ :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
+ :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
+ assert r'\fBmanpage\en\fP' in content