~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_generate_docs.py

  • Committer: Alexander Belchenko
  • Date: 2007-01-04 23:36:44 UTC
  • mfrom: (2224 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2225.
  • Revision ID: bialix@ukr.net-20070104233644-7znkxoj9b0y7ev28
merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
from cStringIO import StringIO
24
24
 
25
 
from bzrlib.tests import TestCase, TestSkipped
 
25
from bzrlib.tests import TestCase
26
26
 
27
27
 
28
28
class Options:
38
38
        self.options.bzr_name = 'bzr'
39
39
 
40
40
    def test_man_page(self):
41
 
        try:
42
 
            from tools.doc_generate import autodoc_man
43
 
        except ImportError:
44
 
            raise TestSkipped('The package "tools" is not available to test.')
 
41
        from tools.doc_generate import autodoc_man
45
42
 
46
43
        autodoc_man.infogen(self.options, self.sio)
47
44
        self.assertNotEqual('', self.sio.getvalue())
48
45
 
49
46
    def test_rstx_man(self):
50
 
        try:
51
 
            from tools.doc_generate import autodoc_rstx
52
 
        except ImportError:
53
 
            raise TestSkipped('The package "tools" is not available to test.')
 
47
        from tools.doc_generate import autodoc_rstx
54
48
 
55
49
        autodoc_rstx.infogen(self.options, self.sio)
56
50
        self.assertNotEqual('', self.sio.getvalue())