/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: Jelmer Vernooij
  • Date: 2020-04-05 19:11:34 UTC
  • mto: (7490.7.16 work)
  • mto: This revision was merged to the branch mainline in revision 7501.
  • Revision ID: jelmer@jelmer.uk-20200405191134-0aebh8ikiwygxma5
Populate the .gitignore file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2007 Canonical Ltd
 
1
# Copyright (C) 2007, 2009, 2011 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
20
20
and produce non-empty output.
21
21
"""
22
22
 
23
 
from cStringIO import StringIO
24
23
 
25
 
import bzrlib.commands
26
 
from bzrlib.tests import TestCase, TestSkipped
 
24
import breezy.commands
 
25
from ..sixish import (
 
26
    StringIO,
 
27
    )
 
28
from . import TestCase
27
29
 
28
30
 
29
31
class Options:
34
36
class TestGenerateDocs(TestCase):
35
37
 
36
38
    def setUp(self):
37
 
        TestCase.setUp(self)
 
39
        super(TestGenerateDocs, self).setUp()
38
40
        self.sio = StringIO()
39
41
        self.options = Options()
40
 
        self.options.bzr_name = 'bzr'
41
 
        bzrlib.commands.install_bzr_command_hooks()
 
42
        self.options.brz_name = 'brz'
 
43
        breezy.commands.install_bzr_command_hooks()
42
44
 
43
45
    def test_man_page(self):
44
 
        from bzrlib.doc_generate import autodoc_man
 
46
        from breezy.doc_generate import autodoc_man
45
47
 
46
48
        autodoc_man.infogen(self.options, self.sio)
47
49
        self.assertNotEqual('', self.sio.getvalue())
48
50
 
49
51
    def test_rstx_man(self):
50
 
        from bzrlib.doc_generate import autodoc_rstx
 
52
        from breezy.doc_generate import autodoc_rstx
51
53
 
52
54
        autodoc_rstx.infogen(self.options, self.sio)
53
55
        self.assertNotEqual('', self.sio.getvalue())