29
32
"""test for branch path lookups
31
34
bzrlib.osutils._relpath do a simple but subtle
32
35
job: given a path (either relative to cwd or absolute), work out
33
36
if it is inside a branch and return the path relative to the base.
40
42
# On Mac OSX, /tmp actually expands to /private/tmp
47
49
# check paths inside dtmp while standing outside it
48
50
self.assertEqual(rp(pathjoin(dtmp, 'foo')), 'foo')