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

  • Committer: Marius Kruger
  • Date: 2010-07-10 21:28:56 UTC
  • mto: (5384.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 5385.
  • Revision ID: marius.kruger@enerweb.co.za-20100710212856-uq4ji3go0u5se7hx
* Update documentation
* add NEWS

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2007, 2009, 2011 Canonical Ltd
 
1
# Copyright (C) 2007 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
23
24
 
24
 
import breezy.commands
25
 
from ..sixish import (
26
 
    StringIO,
27
 
    )
28
 
from . import TestCase
 
25
import bzrlib.commands
 
26
from bzrlib.tests import TestCase, TestSkipped
29
27
 
30
28
 
31
29
class Options:
36
34
class TestGenerateDocs(TestCase):
37
35
 
38
36
    def setUp(self):
39
 
        super(TestGenerateDocs, self).setUp()
 
37
        TestCase.setUp(self)
40
38
        self.sio = StringIO()
41
39
        self.options = Options()
42
 
        self.options.brz_name = 'brz'
43
 
        breezy.commands.install_bzr_command_hooks()
 
40
        self.options.bzr_name = 'bzr'
 
41
        bzrlib.commands.install_bzr_command_hooks()
44
42
 
45
43
    def test_man_page(self):
46
 
        from breezy.doc_generate import autodoc_man
 
44
        from bzrlib.doc_generate import autodoc_man
47
45
 
48
46
        autodoc_man.infogen(self.options, self.sio)
49
47
        self.assertNotEqual('', self.sio.getvalue())
50
48
 
51
49
    def test_rstx_man(self):
52
 
        from breezy.doc_generate import autodoc_rstx
 
50
        from bzrlib.doc_generate import autodoc_rstx
53
51
 
54
52
        autodoc_rstx.infogen(self.options, self.sio)
55
53
        self.assertNotEqual('', self.sio.getvalue())