/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_whitebox.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:
16
16
 
17
17
import os
18
18
 
19
 
import bzrlib
20
 
from bzrlib import (
 
19
import breezy
 
20
from .. import (
21
21
    errors,
22
22
    osutils,
23
23
    tests,
24
24
    )
25
 
from bzrlib.osutils import relpath, pathjoin, abspath, realpath
 
25
from ..osutils import relpath, pathjoin, abspath, realpath
26
26
 
27
27
 
28
28
class MoreTests(tests.TestCaseWithTransport):
30
30
    def test_relpath(self):
31
31
        """test for branch path lookups
32
32
 
33
 
        bzrlib.osutils._relpath do a simple but subtle
 
33
        breezy.osutils._relpath do a simple but subtle
34
34
        job: given a path (either relative to cwd or absolute), work out
35
35
        if it is inside a branch and return the path relative to the base.
36
36
        """
52
52
        # now some near-miss operations -- note that
53
53
        # os.path.commonprefix gets these wrong!
54
54
        self.assertRaises(errors.PathNotChild, rp, dtmp.rstrip('\\/') + '2')
55
 
        self.assertRaises(errors.PathNotChild, rp, dtmp.rstrip('\\/') + '2/foo')
 
55
        self.assertRaises(errors.PathNotChild, rp,
 
56
                          dtmp.rstrip('\\/') + '2/foo')
56
57
 
57
58
        # now operations based on relpath of files in current
58
59
        # directory, or nearby