~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/doc_generate/writers/test_texinfo.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-03-11 15:19:05 UTC
  • mfrom: (5713.2.2 219334-texinfo2)
  • Revision ID: pqm@pqm.ubuntu.com-20110311151905-7pxltfhwqqhgwa5c
(vila) Activate the sphinx tests again. (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
177
177
class TestTocTreeGeneration(test_dg.TestSphinx):
178
178
 
179
179
    def test_toctree(self):
180
 
        if self.sphinx_version() >= (1, 0):
181
 
            raise tests.TestSkipped('Not compatible with sphinx >= 1.0')
182
180
        self.build_tree_contents(
183
181
            [('index.txt', """
184
182
Table of Contents
235
233
""",
236
234
                             'bzr-0.0.8.texi')
237
235
 
 
236
    def test_toctree_empty(self):
 
237
        self.build_tree_contents(
 
238
            [('index.txt', """
 
239
Table of Contents
 
240
=================
 
241
 
 
242
.. toctree::
 
243
   :maxdepth: 1
 
244
""")])
 
245
        app, out, err = self.make_sphinx()
 
246
        self.build(app)
 
247
        self.assertFileEqual("""\
 
248
This file has been converted using a beta rst->texinfo converter. 
 
249
Most of the info links are currently bogus, don't report bugs about them,
 
250
this is currently worked on.
 
251
@node Top
 
252
@top Placeholder
 
253
@node table-of-contents
 
254
@chapter Table of Contents
 
255
""",
 
256
                             'index.texi')
 
257
 
 
258
 
238
259
class TestSections(test_dg.TestSphinx):
239
260
 
240
261
    def test_sections(self):