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

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 14:47:52 UTC
  • mto: This revision was merged to the branch mainline in revision 6623.
  • Revision ID: jelmer@jelmer.uk-20170521144752-8o6jt0a6xat9g7lm
More renames; commands in output, environment variables.

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
22
22
 
23
23
from cStringIO import StringIO
24
24
 
25
 
import bzrlib.commands
26
 
from bzrlib.tests import TestCase, TestSkipped
 
25
import brzlib.commands
 
26
from brzlib.tests import TestCase
27
27
 
28
28
 
29
29
class Options:
34
34
class TestGenerateDocs(TestCase):
35
35
 
36
36
    def setUp(self):
37
 
        TestCase.setUp(self)
 
37
        super(TestGenerateDocs, self).setUp()
38
38
        self.sio = StringIO()
39
39
        self.options = Options()
40
40
        self.options.bzr_name = 'bzr'
41
 
        bzrlib.commands.install_bzr_command_hooks()
 
41
        brzlib.commands.install_bzr_command_hooks()
42
42
 
43
43
    def test_man_page(self):
44
 
        from bzrlib.doc_generate import autodoc_man
 
44
        from brzlib.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 brzlib.doc_generate import autodoc_rstx
51
51
 
52
52
        autodoc_rstx.infogen(self.options, self.sio)
53
53
        self.assertNotEqual('', self.sio.getvalue())