/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 breezy/tests/test_generate_docs.py

  • Committer: Breezy landing bot
  • Author(s): Colin Watson
  • Date: 2020-11-16 21:47:08 UTC
  • mfrom: (7521.1.1 remove-lp-workaround)
  • Revision ID: breezy.the.bot@gmail.com-20201116214708-jos209mgxi41oy15
Remove breezy.git workaround for bazaar.launchpad.net.

Merged from https://code.launchpad.net/~cjwatson/brz/remove-lp-workaround/+merge/393710

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
and produce non-empty output.
21
21
"""
22
22
 
23
 
from cStringIO import StringIO
 
23
from io import StringIO
24
24
 
25
 
import bzrlib.commands
26
 
from bzrlib.tests import TestCase
 
25
import breezy.commands
 
26
from . import TestCase
27
27
 
28
28
 
29
29
class Options:
37
37
        super(TestGenerateDocs, self).setUp()
38
38
        self.sio = StringIO()
39
39
        self.options = Options()
40
 
        self.options.bzr_name = 'bzr'
41
 
        bzrlib.commands.install_bzr_command_hooks()
 
40
        self.options.brz_name = 'brz'
 
41
        breezy.commands.install_bzr_command_hooks()
42
42
 
43
43
    def test_man_page(self):
44
 
        from bzrlib.doc_generate import autodoc_man
 
44
        from breezy.doc_generate import autodoc_man
45
45
 
46
46
        autodoc_man.infogen(self.options, self.sio)
47
47
        self.assertNotEqual('', self.sio.getvalue())
48
48
 
49
49
    def test_rstx_man(self):
50
 
        from bzrlib.doc_generate import autodoc_rstx
 
50
        from breezy.doc_generate import autodoc_rstx
51
51
 
52
52
        autodoc_rstx.infogen(self.options, self.sio)
53
53
        self.assertNotEqual('', self.sio.getvalue())