~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Vincent Ladeuil
  • Date: 2011-07-06 09:22:00 UTC
  • mfrom: (6008 +trunk)
  • mto: (6012.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 6013.
  • Revision ID: v.ladeuil+lp@free.fr-20110706092200-7iai2mwzc0sqdsvf
MergingĀ inĀ trunk

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):