~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-24 19:42:26 UTC
  • mfrom: (2234.3.5 0.14)
  • mto: This revision was merged to the branch mainline in revision 2243.
  • Revision ID: bialix@ukr.net-20070124194226-rl1rlatr3jc5cvhh
merge latest fixes from bzr.0.14

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