summaryrefslogtreecommitdiff
path: root/tests/test_build_latex.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_build_latex.py')
-rw-r--r--tests/test_build_latex.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_build_latex.py b/tests/test_build_latex.py
index bb1904d2c..e0cfce953 100644
--- a/tests/test_build_latex.py
+++ b/tests/test_build_latex.py
@@ -1599,3 +1599,11 @@ def test_latex_elements_extrapackages(app, status, warning):
def test_latex_nested_tables(app, status, warning):
app.builder.build_all()
assert '' == warning.getvalue()
+
+
+@pytest.mark.sphinx('latex', testroot='latex-container')
+def test_latex_container(app, status, warning):
+ app.builder.build_all()
+ result = (app.outdir / 'python.tex').read_text()
+ assert r'\begin{sphinxuseclass}{classname}' in result
+ assert r'\end{sphinxuseclass}' in result