/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_version.py

  • Committer: Richard Wilbur
  • Date: 2016-02-04 19:07:28 UTC
  • mto: This revision was merged to the branch mainline in revision 6618.
  • Revision ID: richard.wilbur@gmail.com-20160204190728-p0zvfii6zase0fw7
Update COPYING.txt from the original http://www.gnu.org/licenses/gpl-2.0.txt  (Only differences were in whitespace.)  Thanks to Petr Stodulka for pointing out the discrepancy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
 
"""Tests for versioning of breezy."""
 
17
"""Tests for versioning of bzrlib."""
18
18
 
 
19
from cStringIO import StringIO
19
20
import platform
20
21
import re
21
22
 
22
 
from .. import (
 
23
from bzrlib import (
23
24
    tests,
24
25
    version,
25
26
    workingtree,
26
27
    )
27
 
from ..sixish import (
28
 
    BytesIO,
29
 
    )
30
 
from .scenarios import load_tests_apply_scenarios
 
28
from bzrlib.tests.scenarios import load_tests_apply_scenarios
31
29
 
32
30
 
33
31
load_tests = load_tests_apply_scenarios
35
33
 
36
34
class TestBzrlibVersioning(tests.TestCase):
37
35
 
38
 
    def test_get_brz_source_tree(self):
 
36
    def test_get_bzr_source_tree(self):
39
37
        """Get tree for bzr source, if any."""
40
38
        self.permit_source_tree_branch_repo()
41
39
        # We don't know if these tests are being run from a checkout or branch
42
40
        # of bzr, from an installed copy, or from source unpacked from a
43
41
        # tarball.  We don't construct a branch just for testing this, so we
44
42
        # just assert that it must either return None or the tree.
45
 
        src_tree = version._get_brz_source_tree()
 
43
        src_tree = version._get_bzr_source_tree()
46
44
        if src_tree is None:
47
45
            raise tests.TestSkipped(
48
46
                "bzr tests aren't run from a bzr working tree")
52
50
 
53
51
    def test_python_binary_path(self):
54
52
        self.permit_source_tree_branch_repo()
55
 
        sio = BytesIO()
 
53
        sio = StringIO()
56
54
        version.show_version(show_config=False, show_copyright=False,
57
55
            to_file=sio)
58
56
        out = sio.getvalue()