~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: John Arbash Meinel
  • Date: 2011-05-11 11:35:28 UTC
  • mto: This revision was merged to the branch mainline in revision 5851.
  • Revision ID: john@arbash-meinel.com-20110511113528-qepibuwxicjrbb2h
Break compatibility with python <2.6.

This includes auditing the code for places where we were doing
explicit 'sys.version' checks and removing them as appropriate.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2010 Canonical Ltd
 
1
# Copyright (C) 2010, 2011 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
16
16
 
17
17
"""sphinx texinfo writer tests."""
18
18
 
 
19
from bzrlib import tests
19
20
from bzrlib.tests import (
20
21
    doc_generate as test_dg, # Avoid clash with from bzrlib import doc_generate
21
22
    )
232
233
""",
233
234
                             'bzr-0.0.8.texi')
234
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
 
235
259
class TestSections(test_dg.TestSphinx):
236
260
 
237
261
    def test_sections(self):