~bzr-pqm/bzr/bzr.dev

« 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:
39
39
        self.options.bzr_name = 'bzr'
40
40
 
41
41
    def test_man_page(self):
42
 
        try:
43
 
            from tools.doc_generate import autodoc_man
44
 
        except ImportError:
45
 
            raise TestSkipped('The package "tools" is not available to test.')
 
42
        from bzrlib.doc_generate import autodoc_man
46
43
 
47
44
        autodoc_man.infogen(self.options, self.sio)
48
45
        self.assertNotEqual('', self.sio.getvalue())
49
46
 
50
47
    def test_rstx_man(self):
51
 
        try:
52
 
            from tools.doc_generate import autodoc_rstx
53
 
        except ImportError:
54
 
            raise TestSkipped('The package "tools" is not available to test.')
 
48
        from bzrlib.tools.doc_generate import autodoc_rstx
55
49
 
56
50
        autodoc_rstx.infogen(self.options, self.sio)
57
51
        self.assertNotEqual('', self.sio.getvalue())