/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_generate_docs.py

  • Committer: Martin Pool
  • Date: 2009-06-16 04:28:19 UTC
  • mto: This revision was merged to the branch mainline in revision 4464.
  • Revision ID: mbp@sourcefrog.net-20090616042819-adz0sq9ct1ls8rrl
Move tools.doc_generate into bzrlib

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
from cStringIO import StringIO
24
24
 
25
 
import bzrlib.commands
26
25
from bzrlib.tests import TestCase, TestSkipped
27
26
 
28
27
 
38
37
        self.sio = StringIO()
39
38
        self.options = Options()
40
39
        self.options.bzr_name = 'bzr'
41
 
        bzrlib.commands.install_bzr_command_hooks()
42
40
 
43
41
    def test_man_page(self):
44
42
        from bzrlib.doc_generate import autodoc_man
47
45
        self.assertNotEqual('', self.sio.getvalue())
48
46
 
49
47
    def test_rstx_man(self):
50
 
        from bzrlib.doc_generate import autodoc_rstx
 
48
        from bzrlib.tools.doc_generate import autodoc_rstx
51
49
 
52
50
        autodoc_rstx.infogen(self.options, self.sio)
53
51
        self.assertNotEqual('', self.sio.getvalue())